3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ''; $a[3] = 4; // PHP 7.0 and older : // PHP 7.1 and more recent ?>

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.00318.30
8.3.50.0100.01016.38
8.3.40.0110.01118.54
8.3.30.0040.01118.59
8.3.20.0050.00221.77
8.3.10.0000.00820.35
8.3.00.0080.00017.71
8.2.180.0090.00916.63
8.2.170.0130.00422.96
8.2.160.0100.00322.17
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00818.03
8.2.120.0080.00026.35
8.2.110.0060.00319.33
8.2.100.0080.00317.91
8.2.90.0020.00518.16
8.2.80.0060.00318.09
8.2.70.0040.00417.63
8.2.60.0070.00018.22
8.2.50.0060.00318.10
8.2.40.0080.00019.33
8.2.30.0050.00319.23
8.2.20.0040.00418.03
8.2.10.0040.00421.08
8.2.00.0070.00018.11
8.1.280.0140.00725.92
8.1.270.0040.00420.38
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0070.00322.52
8.1.230.0030.00721.04
8.1.220.0030.00617.80
8.1.210.0080.00018.78
8.1.200.0040.00417.25
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0040.00418.46
8.1.160.0070.00018.87
8.1.150.0070.00018.84
8.1.140.0000.00818.86
8.1.130.0050.00322.03
8.1.120.0000.00717.48
8.1.110.0050.00217.45
8.1.100.0050.00217.45
8.1.90.0040.00417.48
8.1.80.0040.00417.36
8.1.70.0050.00217.38
8.1.60.0040.00417.45
8.1.50.0000.00717.54
8.1.40.0070.00417.43
8.1.30.0080.00017.64
8.1.20.0040.00417.64
8.1.10.0060.00317.43
8.1.00.0000.00817.42
8.0.300.0040.00419.89
8.0.290.0000.00716.75
8.0.280.0030.00318.49
8.0.270.0030.00317.25
8.0.260.0030.00318.43
8.0.250.0000.00716.86
8.0.240.0070.00016.96
8.0.230.0030.00316.87
8.0.220.0030.00316.89
8.0.210.0030.00316.93
8.0.200.0070.00016.82
8.0.190.0000.00716.83
8.0.180.0040.00416.88
8.0.170.0000.00916.82
8.0.160.0060.00316.87
8.0.150.0030.00316.85
8.0.140.0000.00816.74
8.0.130.0000.00513.34
8.0.120.0040.00416.83
8.0.110.0000.00716.84
8.0.100.0000.00716.76
8.0.90.0000.00716.84
8.0.80.0100.00616.83
8.0.70.0040.00416.83
8.0.60.0050.00316.78
8.0.50.0070.00016.77
8.0.30.0120.00617.05
8.0.20.0090.00917.40
8.0.10.0000.00716.88
8.0.00.0110.00716.62
7.4.330.0000.00515.55
7.4.320.0030.00316.50
7.4.300.0020.00516.58
7.4.290.0070.00016.52
7.4.280.0030.00516.59
7.4.270.0070.00016.34
7.4.260.0000.00716.45
7.4.250.0000.00816.55
7.4.240.0040.00416.44
7.4.230.0030.00316.40
7.4.220.0050.00316.61
7.4.210.0070.01016.60
7.4.200.0040.00316.59
7.4.160.0090.01116.47
7.4.140.0100.01417.86
7.4.130.0130.00716.33
7.4.120.0060.01216.51
7.4.110.0120.00516.44
7.4.100.0120.01216.45
7.4.90.0120.00616.36
7.4.80.0090.01219.39
7.4.70.0160.00016.31
7.4.60.0130.00316.47
7.4.50.0080.00416.53
7.4.40.0090.00916.34
7.4.00.0090.00614.77
7.3.330.0030.00313.09
7.3.320.0030.00613.18
7.3.310.0070.00016.22
7.3.300.0030.00316.11
7.3.290.0000.00716.18
7.3.280.0140.00316.27
7.3.260.0110.00816.48
7.3.240.0120.00616.38
7.3.230.0090.00916.49
7.3.210.0100.00716.27
7.3.200.0100.00616.49
7.3.190.0030.01316.16
7.3.180.0080.00816.13
7.3.170.0150.00316.29
7.3.160.0060.01316.29
7.3.10.0370.00314.88
7.3.00.0350.00714.81
7.2.330.0040.01516.53
7.2.320.0060.01216.59
7.2.310.0100.00616.32
7.2.300.0120.00616.48
7.2.290.0150.00016.30
7.2.130.0660.01014.48
7.2.120.0690.00314.65
7.2.110.0560.00314.86
7.2.100.0620.01314.91
7.2.90.0550.00614.99
7.2.80.0470.00614.90
7.2.70.0360.00614.87
7.2.60.0410.00314.93
7.2.50.0440.00614.57
7.2.40.0430.00714.66
7.2.30.0400.00715.04
7.2.20.0490.00014.93
7.2.10.0330.00614.59
7.2.00.0430.00014.74
7.1.250.0700.00713.76

preferences:
45.28 ms | 400 KiB | 5 Q