3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello, there!'; if (!strpos($string, 'Hello')) { echo 'Did not detect "Hello" in string (default)' . PHP_EOL; } if (false == strpos($string, 'Hello')) { echo 'Did not detect "Hello" in string (loose equality)' . PHP_EOL; } if (false === strpos($string, 'Hello')) { echo 'Did not detect "Hello" in string (strict equality)' . PHP_EOL; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0100.01119.91
8.4.150.0030.00014.05
8.4.140.0120.01017.42
8.4.130.0080.00617.64
8.4.120.0090.00822.15
8.4.110.0120.00922.53
8.4.100.0140.00817.70
8.4.90.0130.00717.75
8.4.80.0120.00817.87
8.4.70.0040.00417.53
8.4.60.0090.00817.58
8.4.50.0130.00817.60
8.4.40.0150.00617.50
8.4.30.0040.00418.64
8.4.20.0100.00019.89
8.4.10.0060.00319.58
8.3.280.0100.01020.10
8.3.270.0140.00716.49
8.3.260.0100.00316.64
8.3.250.0050.00218.97
8.3.240.0100.01016.38
8.3.230.0150.00516.41
8.3.220.0040.00417.16
8.3.210.0110.00716.66
8.3.200.0100.00516.61
8.3.190.0060.00317.04
8.3.180.0110.00816.54
8.3.170.0120.00618.71
8.3.160.0040.01418.36
8.3.150.0140.00417.41
8.3.140.0000.00720.65
8.3.130.0030.01018.43
8.3.120.0130.00719.05
8.3.110.0000.00820.94
8.3.100.0160.00424.06
8.3.90.0100.00026.77
8.3.80.0410.00730.84
8.3.70.0350.01030.84
8.3.60.0400.00630.84
8.3.50.0220.00530.84
8.3.40.0290.01230.84
8.3.30.0310.00730.84
8.3.20.0230.01430.84
8.3.10.0330.00530.84
8.3.00.0280.00330.84
8.2.290.0030.00520.35
8.2.280.0100.00718.25
8.2.270.0070.01117.25
8.2.260.0090.00916.57
8.2.250.0040.00418.17
8.2.240.0000.00817.17
8.2.230.0150.00022.58
8.2.220.0080.00037.54
8.2.210.0000.00726.77
8.2.200.0240.01130.84
8.2.190.0360.00430.84
8.2.180.0350.00530.84
8.2.170.0230.00630.84
8.2.160.0180.00330.84
8.2.150.0260.00230.84
8.2.140.0180.00530.84
8.2.130.0140.00530.84
8.2.120.0180.00630.84
8.2.110.0230.00930.84
8.2.100.0250.00530.84
8.2.90.0250.00530.84
8.2.80.0210.00230.84
8.2.70.0210.00730.84
8.2.60.0230.00330.84
8.2.50.0130.00630.84
8.2.40.0170.00530.84
8.2.30.0320.00530.84
8.2.20.0320.00730.84
8.2.10.0330.00630.84
8.2.00.0260.01530.84
8.1.330.0120.00623.85
8.1.320.0050.00420.11
8.1.310.0140.00416.55
8.1.300.0040.00417.84
8.1.290.0310.00930.84
8.1.280.0280.00930.84
8.1.270.0330.00930.84
8.1.260.0290.01030.84
8.1.250.0350.00530.84
8.1.240.0370.00330.84
8.1.230.0250.00530.84
8.1.220.0190.00730.84
8.1.210.0210.00730.84
8.1.200.0220.00530.84
8.1.190.0180.00530.84
8.1.180.0170.00630.84
8.1.170.0190.00230.84
8.1.160.0150.01230.84
8.1.150.0230.00430.84
8.1.140.0230.00830.84
8.1.130.0260.00730.84
8.1.120.0260.00230.84
8.1.110.0210.00630.84
8.1.100.0210.00730.84
8.1.90.0250.00830.84
8.1.80.0290.01030.84
8.1.70.0280.00930.84
8.1.60.0320.00930.84
8.1.50.0330.00530.84
8.1.40.0310.00230.84
8.1.30.0260.00630.84
8.1.20.0340.00530.84
8.1.10.0340.00930.84
8.1.00.0340.00830.84

preferences:
51.9 ms | 403 KiB | 5 Q