3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=2); // A function called on each tick event function tick_handler() { echo "tick_handler() called\n"; } register_tick_function('tick_handler'); $a = 1; if ($a > 0) { $a += 2; print($a); } ?>

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.0070.00718.55
8.3.50.0090.00721.15
8.3.40.0190.00318.66
8.3.30.0110.00420.21
8.3.20.0040.00420.12
8.3.10.0120.00622.04
8.3.00.0140.00422.26
8.2.180.0070.01416.50
8.2.170.0030.01022.96
8.2.160.0130.00022.11
8.2.150.0120.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00620.80
8.2.110.0030.00619.31
8.2.100.0120.00018.28
8.2.90.0000.00719.20
8.2.80.0030.00519.26
8.2.70.0050.00517.75
8.2.60.0030.00617.93
8.2.50.0080.00018.07
8.2.40.0040.00418.21
8.2.30.0040.00419.43
8.2.20.0040.00417.77
8.2.10.0000.00717.67
8.2.00.0030.00717.80
8.1.270.0090.00923.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.60
8.1.230.0040.00821.04
8.1.220.0080.00018.77
8.1.210.0050.00319.00
8.1.200.0040.00417.23
8.1.190.0030.00517.30
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0030.00618.81
8.1.150.0050.00318.57
8.1.140.0040.00417.30
8.1.130.0050.00317.81
8.1.120.0000.00717.31
8.1.110.0000.00817.25
8.1.100.0000.00817.39
8.1.90.0000.00817.26
8.1.80.0030.00417.32
8.1.70.0070.00017.39
8.1.60.0060.00317.57
8.1.50.0020.00517.40
8.1.40.0040.00717.52
8.1.30.0000.00817.48
8.1.20.0000.00917.63
8.1.10.0030.00617.54
8.1.00.0000.00717.32
8.0.300.0000.00720.02
8.0.290.0000.00717.18
8.0.280.0000.00718.34
8.0.270.0030.00317.24
8.0.260.0000.00716.79
8.0.250.0030.00316.94
8.0.240.0000.00916.81
8.0.230.0030.00316.74
8.0.220.0040.00416.78
8.0.210.0030.00316.78
8.0.200.0060.00016.73
8.0.190.0000.00916.75
8.0.180.0040.00416.82
8.0.170.0030.00516.86
8.0.160.0000.00716.81
8.0.150.0020.00516.86
8.0.140.0070.00416.78
8.0.130.0060.00013.24
8.0.120.0000.00816.75
8.0.110.0000.00816.64
8.0.100.0040.00416.65
8.0.90.0040.00416.68
8.0.80.0090.00616.86
8.0.70.0040.00416.84
8.0.60.0040.00416.73
8.0.50.0000.00716.84
8.0.30.0100.01017.04
8.0.20.0030.01617.40
8.0.10.0000.00716.84
8.0.00.0100.00916.86
7.4.330.0050.00016.77
7.4.320.0030.00316.44
7.4.300.0000.00716.51
7.4.290.0040.00416.43
7.4.280.0050.00316.46
7.4.270.0000.00716.45
7.4.260.0000.00513.16
7.4.250.0040.00416.46
7.4.240.0040.00316.49
7.4.230.0000.00716.55
7.4.220.0070.01116.55
7.4.210.0090.00816.53
7.4.200.0000.00716.22
7.4.190.0030.00316.70
7.4.160.0080.00816.34
7.4.150.0130.00317.40
7.4.140.0080.00917.86
7.4.130.0110.00616.43
7.4.120.0040.01516.51
7.4.110.0100.00616.39
7.4.100.0090.00916.41
7.4.90.0130.00716.31
7.4.80.0100.01419.39
7.4.70.0140.00716.45
7.4.60.0110.00416.45
7.4.50.0040.00416.25
7.4.40.0110.00322.77
7.4.30.0090.00616.37
7.4.00.0070.01115.04
7.3.330.0000.00513.23
7.3.320.0000.00512.98
7.3.310.0000.00716.04
7.3.300.0000.00716.25
7.3.290.0030.01016.16
7.3.280.0070.01116.22
7.3.270.0040.01317.40
7.3.260.0150.00316.30
7.3.250.0050.01616.24
7.3.240.0190.00316.51
7.3.230.0040.01316.59
7.3.210.0090.00916.39
7.3.200.0140.00319.39
7.3.190.0110.00516.47
7.3.180.0060.01016.38
7.3.170.0130.00316.59
7.3.160.0060.00916.18
7.3.120.0100.00714.48
7.3.10.0150.00016.64
7.3.00.0310.00715.78
7.2.330.0090.00916.52
7.2.320.0090.01216.75
7.2.310.0100.00716.59
7.2.300.0100.00716.44
7.2.290.0130.00316.54
7.2.130.0080.00416.46
7.2.120.0070.00716.87
7.2.110.0070.00716.84
7.2.100.0040.01216.70
7.2.90.0030.01316.69
7.2.80.0030.00916.98
7.2.70.0070.00716.64
7.2.60.0120.00416.67
7.2.50.0160.00316.56
7.2.40.0070.00716.72
7.2.30.0060.00916.85
7.2.20.0080.00416.65
7.2.10.0210.00016.90
7.2.00.0090.00718.05
7.1.250.0030.01015.61
7.1.200.0060.00915.48
7.1.100.0040.00718.11
7.1.70.0030.01017.18
7.1.60.0100.01319.17
7.1.50.0090.01316.89
7.1.00.0070.07322.55
7.0.200.0090.00616.55
7.0.140.0070.06722.00
7.0.100.0370.05320.16
7.0.90.0330.08320.03
7.0.80.0200.06319.98
7.0.70.0070.09019.86
7.0.60.0170.07019.97
7.0.50.0430.06720.29
7.0.40.0070.03320.00
7.0.30.0100.05319.95
7.0.20.0070.08020.19
7.0.10.0170.03720.11
7.0.00.0130.08019.98
5.6.280.0070.07020.99
5.6.250.0030.07020.52
5.6.240.0130.08020.51
5.6.230.0130.07720.59
5.6.220.0070.05020.61
5.6.210.0000.04720.57
5.6.200.0070.08021.14
5.6.190.0070.06020.94
5.6.180.0170.06721.11
5.6.170.0100.07321.08
5.6.160.0070.03721.05
5.6.150.0030.04720.96
5.6.140.0030.08321.04
5.6.130.0130.07721.03
5.6.120.0130.03021.11
5.6.110.0030.09021.00
5.6.100.0130.07021.02
5.6.90.0100.05021.00
5.6.80.0070.03720.48
5.6.70.0130.07020.48
5.6.60.0030.04720.39
5.6.50.0070.06020.46
5.6.40.0070.04720.48
5.6.30.0170.06720.49
5.6.20.0070.03720.42
5.6.10.0070.06720.36
5.6.00.0030.03720.27
5.5.380.0070.08020.38
5.5.370.0170.06320.46
5.5.360.0070.08020.33
5.5.350.0170.07720.31
5.5.340.0030.07320.76
5.5.330.0100.03320.79
5.5.320.0070.08320.73
5.5.310.0100.07320.90
5.5.300.0130.08020.87
5.5.290.0100.06720.78
5.5.280.0030.07720.86
5.5.270.0200.04020.76
5.5.260.0070.08020.81
5.5.250.0070.07320.68
5.5.240.0070.04020.31
5.5.230.0100.08020.26
5.5.220.0130.07020.14
5.5.210.0070.05020.25
5.5.200.0100.08320.27
5.5.190.0170.04720.22
5.5.180.0030.04320.22
5.5.160.0000.04020.18
5.5.150.0070.03320.21
5.5.140.0100.06020.12
5.5.130.0070.07319.99
5.5.120.0000.04320.10
5.5.110.0100.06320.12
5.5.100.0000.09020.02
5.5.90.0030.04720.06
5.5.80.0070.05320.11
5.5.70.0070.08320.07
5.5.60.0130.03320.10
5.5.50.0130.08020.05
5.5.40.0000.08319.93
5.5.30.0100.06720.05
5.5.20.0070.08020.05
5.5.10.0070.05720.03
5.5.00.0100.04020.08
5.4.450.0100.08019.18
5.4.440.0170.07019.20
5.4.430.0070.05719.50
5.4.420.0070.04019.20
5.4.410.0130.04319.24
5.4.400.0130.05719.03
5.4.390.0070.07018.90
5.4.380.0030.06719.13
5.4.370.0130.06719.18
5.4.360.0130.06718.87
5.4.350.0130.06719.19
5.4.340.0070.04019.04
5.4.320.0030.04319.13
5.4.310.0030.03719.03
5.4.300.0070.07019.18
5.4.290.0030.03319.04
5.4.280.0070.06018.88
5.4.270.0030.06719.16
5.4.260.0030.05719.02
5.4.250.0070.05719.16
5.4.240.0130.07019.08
5.4.230.0070.04319.02
5.4.220.0170.06319.12
5.4.210.0100.06719.14
5.4.200.0130.06319.02
5.4.190.0030.04719.15
5.4.180.0200.04319.17
5.4.170.0070.07719.15
5.4.160.0130.04719.01
5.4.150.0030.07319.11
5.4.140.0070.04716.41
5.4.130.0070.07016.43
5.4.120.0000.07316.44
5.4.110.0130.05716.38
5.4.100.0100.07016.36
5.4.90.0030.04316.47
5.4.80.0070.07016.37
5.4.70.0170.06316.37
5.4.60.0030.05716.36
5.4.50.0070.04016.48
5.4.40.0100.06016.43
5.4.30.0030.05016.32
5.4.20.0000.07716.36
5.4.10.0130.03316.29
5.4.00.0130.06015.90
5.3.290.0070.03314.64
5.3.280.0070.06314.59
5.3.270.0030.08014.74
5.3.260.0100.06714.61
5.3.250.0100.07314.71
5.3.240.0000.04314.59
5.3.230.0070.05314.52
5.3.220.0030.04314.68
5.3.210.0100.04014.50
5.3.200.0100.06714.62
5.3.190.0070.04314.52
5.3.180.0030.09714.54
5.3.170.0100.03714.67
5.3.160.0130.06714.61
5.3.150.0070.06714.57
5.3.140.0030.07714.60
5.3.130.0000.04714.64
5.3.120.0070.07314.51
5.3.110.0030.06314.51
5.3.100.0030.05014.06
5.3.90.0130.04714.12
5.3.80.0030.03714.14
5.3.70.0070.07714.13
5.3.60.0100.07313.98
5.3.50.0030.05014.05
5.3.40.0100.05014.06
5.3.30.0070.07713.99
5.3.20.0030.04013.75
5.3.10.0070.06713.71
5.3.00.0100.06313.69

preferences:
48.3 ms | 400 KiB | 5 Q