3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [null, 0, '0', '', 'a', 'b,c,d', '1,2,3,4']; foreach ($tests as $test) { var_dump($test); echo " -> \n"; var_export(explode(',', $test)); echo "\n---\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.0110.00716.75
8.3.50.0100.00316.30
8.3.40.0070.00718.58
8.3.30.0070.00718.67
8.3.20.0040.00421.77
8.3.10.0050.00221.86
8.3.00.0080.00023.65
8.2.180.0100.01325.92
8.2.170.0110.00418.95
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0020.00521.15
8.2.110.0070.00322.25
8.2.100.0110.00017.84
8.2.90.0040.00417.84
8.2.80.0080.00019.06
8.2.70.0030.00517.93
8.2.60.0000.00718.03
8.2.50.0040.00418.10
8.2.40.0000.00919.47
8.2.30.0000.00719.23
8.2.20.0040.00418.06
8.2.10.0000.00719.25
8.2.00.0000.00719.30
8.1.280.0110.00725.92
8.1.270.0040.00422.05
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.03
8.1.230.0110.00020.95
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0000.00917.25
8.1.190.0060.00317.25
8.1.180.0000.00718.88
8.1.170.0040.00418.40
8.1.160.0070.00019.01
8.1.150.0040.00418.89
8.1.140.0070.00020.68
8.1.130.0040.00418.90
8.1.120.0040.00417.46
8.1.110.0000.00817.45
8.1.100.0000.00717.48
8.1.90.0000.00817.34
8.1.80.0030.00617.43
8.1.70.0040.00417.46
8.1.60.0060.00317.60
8.1.50.0000.00817.41
8.1.40.0050.00317.54
8.1.30.0000.00817.55
8.1.20.0030.00517.60
8.1.10.0030.00617.55
8.1.00.0090.00017.29
8.0.300.0000.00720.11
8.0.290.0050.00316.63
8.0.280.0000.00818.38
8.0.270.0030.00316.78
8.0.260.0060.00018.50
8.0.250.0000.00617.00
8.0.240.0000.00617.01
8.0.230.0040.00416.96
8.0.220.0050.00316.78
8.0.210.0000.00716.94
8.0.200.0000.00716.99
8.0.190.0040.00416.94
8.0.180.0000.00716.87
8.0.170.0030.00616.95
8.0.160.0050.00316.84
8.0.150.0000.00716.83
8.0.140.0000.00716.90
8.0.130.0030.00313.28
8.0.120.0040.00416.75
8.0.110.0040.00416.88
8.0.100.0030.00316.91
8.0.90.0000.00916.77
8.0.80.0030.01216.87
8.0.70.0000.00816.68
8.0.60.0080.00016.95
8.0.50.0080.00016.77
8.0.30.0060.01117.19
8.0.20.0130.00616.95
8.0.10.0070.00016.98
8.0.00.0120.01217.00
7.4.330.0020.00216.76
7.4.320.0070.00016.59
7.4.300.0030.00516.50
7.4.290.0000.00716.50
7.4.280.0030.00516.63
7.4.270.0060.00316.57
7.4.260.0030.00313.25
7.4.250.0000.00716.47
7.4.240.0020.00516.57
7.4.230.0000.00816.71
7.4.220.0020.00516.60
7.4.210.0070.00916.59
7.4.200.0050.00216.71
7.4.140.0120.01217.86
7.4.130.0090.01516.35
7.4.120.0030.01316.58
7.4.110.0120.00916.61
7.4.100.0140.00416.53
7.4.90.0130.01016.43
7.4.80.0060.01219.39
7.4.70.0080.00816.55
7.4.60.0100.01016.39
7.4.50.0000.01416.47
7.4.40.0100.00716.50
7.4.20.0090.01016.54
7.4.10.0110.01116.00
7.4.00.0040.01516.41
7.3.330.0020.00516.34
7.3.320.0000.00513.06
7.3.310.0030.00316.33
7.3.300.0030.00316.11
7.3.290.0120.00716.26
7.3.280.0030.01116.19
7.3.260.0150.00316.65
7.3.230.0110.01116.25
7.3.210.0090.00916.50
7.3.200.0130.01016.61
7.3.190.0100.00816.48
7.3.180.0110.01116.51
7.3.170.0110.00616.39
7.3.160.0120.00916.19
7.3.130.0160.00716.41
7.3.120.0150.00816.31
7.3.110.0110.01116.38
7.3.100.0140.01416.31
7.3.90.0080.00816.29
7.3.80.0120.00916.07
7.3.70.0060.01616.23
7.3.60.0100.00916.39
7.3.50.0120.01316.41
7.3.40.0150.00316.02
7.3.30.0070.00816.18
7.3.20.0120.01216.23
7.3.10.0210.00316.46
7.3.00.0120.00616.08
7.2.330.0060.01616.57
7.2.320.0120.00616.48
7.2.310.0030.01416.63
7.2.300.0060.00916.60
7.2.290.0180.00016.48
7.2.260.0160.00516.27
7.2.250.0100.01516.52
7.2.240.0070.01516.43
7.2.230.0130.01016.44
7.2.220.0060.01116.46
7.2.210.0090.01216.39
7.2.200.0100.01016.45
7.2.190.0060.01216.41
7.2.180.0060.01116.49
7.2.170.0120.00916.27
7.2.160.0100.01016.42
7.2.150.0130.01216.48
7.2.140.0100.01016.45
7.2.130.0160.00316.55
7.2.120.0060.01316.35
7.2.110.0140.00316.22
7.2.100.0110.00716.27
7.2.90.0000.01816.61
7.2.80.0000.01916.48
7.2.70.0090.00916.61
7.2.60.0060.01416.50
7.2.50.0120.00616.33
7.2.40.0170.00016.36
7.2.30.0120.00616.66
7.2.20.0030.01416.46
7.2.10.0040.01416.45
7.2.00.0090.00916.43

preferences:
65.64 ms | 401 KiB | 5 Q