3v4l.org

run code in 300+ PHP versions simultaneously
<?php // First script $a = 1; echo $a + $a++; // may print either 2 or 3 => Finally, no, it always print 3 echo "\n"; // Second script $i = 1; $array[$i] = $i++; // may set either index 1 or 2 => Same here, array will always contain index 2 and value 1 var_export($array);

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.10.0110.00619.49
8.5.00.0140.00719.91
8.4.150.0030.00014.05
8.4.140.0130.00817.39
8.4.130.0080.01018.80
8.4.120.0020.00622.11
8.4.110.0070.00322.51
8.4.100.0090.00818.88
8.4.90.0120.00822.56
8.4.80.0100.00618.72
8.4.70.0090.00618.75
8.4.60.0060.00217.79
8.4.50.0070.00118.71
8.4.40.0100.00019.30
8.4.30.0060.01320.40
8.4.20.0140.00319.55
8.4.10.0070.01319.56
8.3.280.0140.00618.28
8.3.270.0110.00916.49
8.3.260.0060.00316.61
8.3.250.0130.00618.72
8.3.240.0150.00418.79
8.3.230.0100.00916.61
8.3.220.0110.00719.00
8.3.210.0060.00216.46
8.3.200.0050.00416.58
8.3.190.0100.00516.49
8.3.180.0040.00516.65
8.3.170.0000.00718.70
8.3.160.0060.01219.87
8.3.150.0090.00916.45
8.3.140.0100.00717.04
8.3.130.0110.00016.73
8.3.120.0030.00618.72
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0000.01826.77
8.3.80.0000.01018.27
8.3.70.0100.00716.75
8.3.60.0110.00416.50
8.3.50.0140.00721.21
8.3.40.0100.00618.68
8.3.30.0070.00718.62
8.3.20.0040.00420.05
8.3.10.0080.00020.07
8.3.00.0000.00721.63
8.2.290.0130.00620.49
8.2.280.0100.00916.81
8.2.270.0090.00918.88
8.2.260.0090.00918.20
8.2.250.0100.00018.65
8.2.240.0080.00017.37
8.2.230.0060.00322.58
8.2.220.0090.00337.54
8.2.210.0030.00526.77
8.2.200.0090.00016.38
8.2.190.0000.01416.58
8.2.180.0070.00718.16
8.2.170.0040.01122.96
8.2.160.0040.01120.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00022.25
8.2.120.0080.00026.16
8.2.110.0090.00021.04
8.2.100.0110.00017.78
8.2.90.0030.00519.21
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0030.00818.04
8.2.50.0040.00418.10
8.2.40.0060.00320.60
8.2.30.0000.00719.25
8.2.20.0000.00718.11
8.2.10.0060.00318.00
8.2.00.0050.00218.11
8.1.330.0090.00921.80
8.1.320.0130.00617.98
8.1.310.0100.01018.43
8.1.300.0000.00820.25
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0070.00022.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00621.37
8.1.230.0030.00917.76
8.1.220.0050.00517.91
8.1.210.0100.00018.77
8.1.200.0030.00617.35
8.1.190.0070.00017.22
8.1.180.0000.00818.10
8.1.170.0030.00518.52
8.1.160.0000.00718.89
8.1.150.0040.00420.17
8.1.140.0070.00019.52
8.1.130.0060.00019.00
8.1.120.0040.00417.29
8.1.110.0030.00617.26
8.1.100.0000.00817.42
8.1.90.0040.00317.40
8.1.80.0000.00717.39
8.1.70.0000.00717.26
8.1.60.0040.00417.52
8.1.50.0040.00417.45
8.1.40.0040.00417.41
8.1.30.0030.00517.68
8.1.20.0000.00717.47
8.1.10.0040.00417.55
8.1.00.0000.00817.50
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0070.00018.35
8.0.270.0060.00317.21
8.0.260.0030.00317.12
8.0.250.0030.00316.94
8.0.240.0040.00416.95
8.0.230.0000.00816.84
8.0.220.0070.00016.82
8.0.210.0000.00716.78
8.0.200.0000.00716.90
8.0.190.0000.00716.88
8.0.180.0070.00016.81
8.0.170.0040.00416.90
8.0.160.0080.00016.84
8.0.150.0030.00316.65
8.0.140.0000.00716.77
8.0.130.0060.00313.25
8.0.120.0030.00516.76
8.0.110.0030.00416.71
8.0.100.0040.00416.70
8.0.90.0060.00316.71
8.0.80.0110.00516.87
8.0.70.0000.00716.75
8.0.60.0040.00416.76
8.0.50.0040.00416.61
8.0.30.0130.00417.10
8.0.20.0130.00817.40
8.0.10.0000.00716.98
8.0.00.0090.00916.83
7.4.330.0030.00215.55
7.4.320.0060.00316.41
7.4.300.0030.00316.43
7.4.290.0070.00316.41
7.4.280.0000.00816.34
7.4.270.0040.00416.38
7.4.260.0000.00716.43
7.4.250.0040.00416.54
7.4.240.0030.00316.52
7.4.230.0020.00516.42
7.4.220.0120.01716.39
7.4.210.0080.00816.46
7.4.200.0030.00516.53
7.4.160.0090.00916.52
7.4.150.0210.00317.40
7.4.140.0150.00717.86
7.4.130.0130.00916.32
7.4.120.0150.00716.41
7.4.110.0070.01716.40
7.4.100.0100.00616.37
7.4.90.0030.01416.48
7.4.80.0060.01019.39
7.4.70.0080.00916.55
7.4.60.0060.00916.48
7.4.50.0090.00616.30
7.4.40.0040.01216.45
7.4.30.0110.01116.33
7.4.00.0070.00714.96
7.3.330.0030.00313.15
7.3.320.0050.00013.30
7.3.310.0070.00016.27
7.3.300.0030.00316.34
7.3.290.0130.00416.32
7.3.280.0080.01016.33
7.3.270.0180.03417.40
7.3.260.0120.00716.46
7.3.250.0130.00316.38
7.3.240.0130.00416.47
7.3.230.0110.01116.39
7.3.210.0080.00816.25
7.3.200.0070.01316.18
7.3.190.0140.00716.52
7.3.180.0120.01216.43
7.3.170.0030.01316.30
7.3.160.0100.00716.53
7.2.330.0140.00316.57
7.2.320.0060.00916.66
7.2.310.0090.00916.56
7.2.300.0150.00316.56
7.2.290.0080.00816.60
7.2.60.0030.01016.69
7.2.50.0070.00717.00
7.1.200.0000.01115.68
7.1.70.0000.00917.37
7.1.60.0040.00717.27
7.1.50.0030.01017.03
7.1.40.0060.01916.65
7.1.30.0030.01316.80
7.1.20.0030.00916.76
7.1.10.0060.00616.77
7.1.00.0000.00816.65
7.0.200.0000.00916.85
7.0.190.0030.00316.72
7.0.180.0060.01016.65
7.0.170.0000.00916.65
7.0.160.0060.00316.65
7.0.150.0040.00816.65
7.0.140.0030.01316.65
7.0.130.0060.00616.65
7.0.120.0030.00616.68
7.0.110.0050.00516.65
7.0.100.0000.00916.65
7.0.90.0090.00616.65
7.0.80.0060.00916.65
7.0.70.0060.00316.65
7.0.60.0040.00416.65
7.0.50.0050.00516.65
7.0.40.0080.00016.65
7.0.30.0050.00216.65
7.0.20.0060.00616.65
7.0.10.0080.00016.65
7.0.00.0000.00816.65
5.6.300.0030.04020.89
5.6.290.0070.04720.76
5.6.280.0000.04420.88
5.6.270.0000.05120.89
5.6.260.0070.04420.95
5.6.250.0000.04320.86
5.6.240.0070.03720.83
5.6.230.0030.04120.94
5.6.220.0070.04321.02
5.6.210.0070.04621.04
5.6.200.0070.04020.98
5.6.190.0030.04020.92
5.6.180.0030.04120.82
5.6.170.0000.05220.82
5.6.160.0030.04820.82
5.6.150.0000.04820.94
5.6.140.0000.04620.80
5.6.130.0070.03620.72
5.6.120.0000.04920.84
5.6.110.0030.05620.90
5.6.100.0000.04920.99
5.6.90.0060.04120.94
5.6.80.0030.03820.24
5.6.70.0100.07220.32
5.6.60.0030.04120.29
5.6.50.0060.03920.18
5.6.40.0000.04220.09
5.6.30.0030.06620.12
5.6.20.0060.03820.22
5.6.10.0060.03920.37
5.6.00.0000.04620.32
5.5.380.0070.07817.50
5.5.370.0030.05617.41
5.5.360.0030.04417.55
5.5.350.0000.04617.53
5.5.340.0170.04717.74
5.5.330.0030.04217.97
5.5.320.0060.03917.95
5.5.310.0040.03918.11
5.5.300.0030.05118.03
5.5.290.0030.04517.97
5.5.280.0030.03917.86
5.5.270.0000.04417.90
5.5.260.0060.03918.07
5.5.250.0070.03717.75
5.5.240.0060.04217.25
5.5.230.0070.03717.38
5.5.220.0030.03917.12
5.5.210.0000.04417.29
5.5.200.0070.06117.21
5.5.190.0000.08217.37
5.5.180.0000.04317.29
5.5.160.0030.04617.30
5.5.150.0070.04317.41
5.5.140.0030.04817.38
5.5.130.0070.04317.22
5.5.120.0030.03817.43
5.5.110.0000.04217.29
5.5.100.0100.03017.28
5.5.90.0030.05817.33
5.5.80.0070.05917.19
5.5.70.0030.07816.98
5.5.60.0030.03717.26
5.5.50.0000.08017.11
5.5.40.0030.03817.30
5.5.30.0000.04216.98
5.5.20.0000.05017.28
5.5.10.0070.07317.27
5.5.00.0030.06217.04
5.4.450.0030.04119.39
5.4.440.0030.06019.15
5.4.430.0060.03919.39
5.4.420.0000.07019.14
5.4.410.0000.04619.12
5.4.400.0000.04518.82
5.4.390.0060.04219.17
5.4.380.0040.03919.07
5.4.370.0070.03719.11
5.4.360.0000.04319.16
5.4.350.0030.05818.86
5.4.340.0000.04219.17
5.4.320.0000.05318.98
5.4.310.0000.04418.88
5.4.300.0090.03518.82
5.4.290.0190.03919.05
5.4.280.0000.04219.05
5.4.270.0000.04119.07
5.4.260.0100.03018.97
5.4.250.0030.03619.13
5.4.240.0030.05818.81
5.4.230.0030.07019.05
5.4.220.0070.05018.88
5.4.210.0000.04618.97
5.4.200.0100.03319.09
5.4.190.0030.07619.01
5.4.180.0000.06219.10
5.4.170.0030.03818.81
5.4.160.0030.03919.17
5.4.150.0100.03718.96
5.4.140.0030.04016.65
5.4.130.0030.04616.65
5.4.120.0030.03816.65
5.4.110.0000.04016.66
5.4.100.0030.03516.65
5.4.90.0030.05916.65
5.4.80.0000.07616.65
5.4.70.0030.04016.65
5.4.60.0030.03416.65
5.4.50.0100.06416.65
5.4.40.0060.03416.65
5.4.30.0060.02916.65
5.4.20.0030.04516.65
5.4.10.0060.03816.65
5.4.00.0030.03316.65
5.3.290.0070.03216.65
5.3.280.0000.06416.65
5.3.270.0130.03216.65
5.3.260.0030.03716.65
5.3.250.0030.03716.65
5.3.240.0000.04816.65
5.3.230.0030.06216.65
5.3.220.0030.03516.65
5.3.210.0030.04216.65
5.3.200.0070.03616.65
5.3.190.0070.03716.65
5.3.180.0100.03616.65
5.3.170.0040.03516.65
5.3.160.0030.06516.65
5.3.150.0030.07416.65
5.3.140.0030.03816.65
5.3.130.0000.05016.65
5.3.120.0000.04516.65
5.3.110.0030.05316.65
5.3.100.0000.04016.65
5.3.90.0100.03016.65
5.3.80.0030.03916.65
5.3.70.0000.03816.65
5.3.60.0030.07616.65
5.3.50.0060.03216.65
5.3.40.0000.04116.65
5.3.30.0000.04116.65
5.3.20.0000.04316.65
5.3.10.0000.03816.65
5.3.00.0030.03316.65
5.2.170.0030.03016.65
5.2.160.0030.02716.65
5.2.150.0000.03216.65
5.2.140.0060.02616.65
5.2.130.0030.02716.65
5.2.120.0030.03116.65
5.2.110.0000.03116.65
5.2.100.0000.03116.65
5.2.90.0040.02816.65
5.2.80.0070.02716.65
5.2.70.0030.02916.65
5.2.60.0000.03916.65
5.2.50.0030.03416.65
5.2.40.0030.03016.65
5.2.30.0030.03016.65
5.2.20.0030.05816.65
5.2.10.0060.03216.65
5.2.00.0070.02316.65
5.1.60.0000.02516.65
5.1.50.0030.02316.65
5.1.40.0030.02716.65
5.1.30.0060.02216.65
5.1.20.0030.04016.65
5.1.10.0030.02416.65
5.1.00.0030.03116.65
5.0.50.0070.01716.65
5.0.40.0000.02216.65
5.0.30.0000.03216.65
5.0.20.0060.02916.65
5.0.10.0000.02016.65
5.0.00.0030.03416.65
4.4.90.0000.01616.65
4.4.80.0000.01616.65
4.4.70.0000.01816.65
4.4.60.0000.02116.65
4.4.50.0040.01816.65
4.4.40.0030.02516.65
4.4.30.0030.01316.65
4.4.20.0030.01516.65
4.4.10.0000.01716.65
4.4.00.0000.02716.65
4.3.110.0000.01816.65
4.3.100.0000.01616.65
4.3.90.0000.02816.65
4.3.80.0030.03516.65
4.3.70.0030.01616.65
4.3.60.0000.01716.65
4.3.50.0040.02116.65
4.3.40.0030.02916.65
4.3.30.0030.01316.65
4.3.20.0060.01316.65
4.3.10.0000.01716.65
4.3.00.0000.01616.65

preferences:
179.87 ms | 403 KiB | 5 Q