3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = ['1,23,45,123,145,200', '345,999,0,1', '0', '0,2', '-1,-122', '', '1.5,2.9']; foreach ($tests as $test) { var_export(strstr($test, ',', true)); echo "\n"; }

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.3.60.0150.00618.30
8.3.50.0110.00418.22
8.3.40.0070.01418.54
8.3.30.0070.00718.46
8.3.20.0070.00021.78
8.3.10.0060.00320.23
8.3.00.0080.00017.50
8.2.180.0150.00616.38
8.2.170.0100.00322.96
8.2.160.0030.01022.24
8.2.150.0050.00324.18
8.2.140.0110.00424.66
8.2.130.0040.00418.03
8.2.120.0000.00726.35
8.2.110.0060.00321.09
8.2.100.0080.00417.66
8.2.90.0040.00420.59
8.2.80.0000.00817.50
8.2.70.0030.00617.60
8.2.60.0040.00417.48
8.2.50.0050.00318.10
8.2.40.0000.00819.33
8.2.30.0040.00419.29
8.2.20.0040.00418.04
8.2.10.0040.00419.23
8.2.00.0040.00418.04
8.1.280.0090.00925.92
8.1.270.0060.00323.96
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00619.19
8.1.230.0110.00220.86
8.1.220.0080.00017.79
8.1.210.0030.00718.85
8.1.200.0060.00317.35
8.1.190.0090.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00918.49
8.1.160.0000.00718.80
8.1.150.0000.00718.73
8.1.140.0000.00718.84
8.1.130.0000.00720.07
8.1.120.0000.00717.46
8.1.110.0000.00917.42
8.1.100.0030.00317.33
8.1.90.0000.01017.50
8.1.80.0080.00017.36
8.1.70.0000.00817.46
8.1.60.0000.00817.61
8.1.50.0050.00317.58
8.1.40.0060.00517.41
8.1.30.0070.00017.55
8.1.20.0020.00517.66
8.1.10.0000.00917.54
8.1.00.0040.00417.32
8.0.300.0000.00719.98
8.0.290.0000.00716.75
8.0.280.0040.00418.34
8.0.270.0030.00316.81
8.0.260.0000.00718.42
8.0.250.0000.00716.84
8.0.240.0060.00316.83
8.0.230.0030.00316.80
8.0.220.0030.00316.78
8.0.210.0030.00316.75
8.0.200.0030.00316.93
8.0.190.0070.00016.90
8.0.180.0060.00316.83
8.0.170.0030.00616.91
8.0.160.0000.00716.85
8.0.150.0030.00416.70
8.0.140.0030.00316.86
8.0.130.0030.00313.26
8.0.120.0050.00316.84
8.0.110.0040.00416.86
8.0.100.0050.00316.71
8.0.90.0040.00416.92
8.0.80.0060.01016.92
8.0.70.0000.00716.91
8.0.60.0000.00816.88
8.0.50.0040.00416.70
8.0.30.0120.00617.13
8.0.20.0110.00816.83
8.0.10.0040.00417.05
8.0.00.0090.01016.77
7.4.330.0040.00015.55
7.4.320.0000.00616.58
7.4.300.0030.00316.49
7.4.290.0000.00616.58
7.4.280.0000.00716.46
7.4.270.0030.00516.52
7.4.260.0070.00416.40
7.4.250.0040.00416.55
7.4.240.0030.00616.52
7.4.230.0070.00016.66
7.4.220.0050.00316.38
7.4.210.0110.00616.63
7.4.200.0000.00716.34
7.4.160.0120.00516.50
7.4.140.0110.01117.86
7.4.130.0070.01116.54
7.4.120.0040.01716.45
7.4.110.0070.01116.50
7.4.100.0100.01316.50
7.4.90.0040.01416.28
7.4.80.0100.00619.39
7.4.70.0030.01416.48
7.4.60.0100.01016.41
7.4.50.0000.01416.33
7.4.40.0090.01216.48
7.4.00.0040.00815.00
7.3.330.0000.00613.09
7.3.320.0030.00313.18
7.3.310.0070.00016.39
7.3.300.0000.00716.16
7.3.290.0000.00616.29
7.3.280.0130.00616.25
7.3.260.0130.00916.38
7.3.240.0110.01016.47
7.3.230.0030.01316.28
7.3.210.0090.00916.77
7.3.200.0090.00616.66
7.3.190.0140.00716.63
7.3.180.0000.01616.31
7.3.170.0160.00616.45
7.3.160.0100.00616.26
7.3.10.0420.00614.82
7.3.00.0580.00614.75
7.2.330.0070.01016.47
7.2.320.0100.00716.56
7.2.310.0100.00616.63
7.2.300.0120.01216.73
7.2.290.0100.00616.72
7.2.130.0410.00914.91
7.2.120.1110.01314.87
7.2.110.0360.00715.00
7.2.100.0380.00314.93
7.2.90.0480.00315.17
7.2.80.0540.01014.87
7.2.70.0480.00714.99
7.2.60.0440.01015.16
7.2.50.0480.00914.80
7.2.40.0420.01315.05
7.2.30.0500.00614.89
7.2.20.0430.00315.13
7.2.10.0400.00315.07
7.2.00.0550.00414.85
7.1.250.0520.01013.64

preferences:
62.83 ms | 400 KiB | 5 Q