3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $t; function myCalculations () { $x=22; echo "<p>Test variable oustide of function:</p>"; echo "Variable x is: $x"; echo "<br>"; echo "Variable t is: $t"; }// Code will only display x myCalculations(); echo "<p>Test variable inside of function:</p>"; echo "Variable x is: $x"; echo "<br>"; echo "Variable t is: $t"; ?>//Code will only display t </body> </html>

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.0040.01116.63
8.3.50.0100.00821.93
8.3.40.0150.00318.57
8.3.30.0030.01119.00
8.3.20.0070.00020.20
8.3.10.0080.00023.53
8.3.00.0040.00419.11
8.2.180.0040.01118.39
8.2.170.0070.00722.96
8.2.160.0110.00320.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0090.00926.16
8.2.120.0040.00422.13
8.2.110.0040.00422.08
8.2.100.0080.00417.84
8.2.90.0030.00619.08
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0050.00218.34
8.2.30.0000.00718.14
8.2.20.0030.00517.79
8.2.10.0030.00618.08
8.2.00.0060.00317.78
8.1.280.0030.01425.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00823.89
8.1.230.0100.00019.08
8.1.220.0050.00217.74
8.1.210.0000.00918.77
8.1.200.0100.00017.22
8.1.190.0050.00317.39
8.1.180.0060.00318.10
8.1.170.0030.00518.40
8.1.160.0040.00421.88
8.1.150.0000.00718.45
8.1.140.0000.00817.38
8.1.130.0000.00717.85
8.1.120.0040.00417.45
8.1.110.0070.00317.29
8.1.100.0000.00717.34
8.1.90.0070.00017.25
8.1.80.0040.00417.25
8.1.70.0030.00317.32
8.1.60.0080.00017.58
8.1.50.0040.00417.54
8.1.40.0050.00317.50
8.1.30.0020.00517.65
8.1.20.0000.00917.55
8.1.10.0000.00717.39
8.1.00.0000.00817.51
8.0.300.0040.00419.15
8.0.290.0040.00417.30
8.0.280.0030.00318.43
8.0.270.0040.00417.21
8.0.260.0030.00317.25
8.0.250.0030.00316.98
8.0.240.0070.00017.03
8.0.230.0000.00716.94
8.0.220.0040.00416.81
8.0.210.0080.00016.86
8.0.200.0030.00316.92
8.0.190.0000.00716.98
8.0.180.0040.00416.85
8.0.170.0060.00316.96
8.0.160.0070.00016.85
8.0.150.0000.00816.86
8.0.140.0070.00016.91
8.0.130.0060.00313.36
8.0.120.0070.00016.83
8.0.110.0070.00016.95
8.0.100.0000.00716.99
8.0.90.0080.00017.01
8.0.80.0090.00616.97
8.0.70.0070.00016.85
8.0.60.0000.00816.75
8.0.50.0040.00416.89
8.0.30.0120.00816.83
8.0.20.0150.00517.40
8.0.10.0070.00016.83
8.0.00.0070.01116.77
7.4.330.0060.00015.00
7.4.320.0070.00016.34
7.4.300.0030.00316.35
7.4.290.0040.00416.51
7.4.280.0000.00716.59
7.4.270.0040.00416.48
7.4.260.0000.00816.58
7.4.250.0000.00716.57
7.4.240.0020.00516.59
7.4.230.0030.00316.34
7.4.220.0150.00316.63
7.4.210.0090.00916.51
7.4.200.0030.00316.41
7.4.190.0000.00716.56
7.4.160.0090.00616.53
7.4.150.0060.01217.40
7.4.140.0070.01017.86
7.4.130.0110.00516.51
7.4.120.0100.00716.60
7.4.110.0150.00316.49
7.4.100.0000.01816.55
7.4.90.0070.01116.71
7.4.80.0090.00819.39
7.4.70.0050.01116.51
7.4.60.0030.01616.47
7.4.50.0030.00316.53
7.4.40.0110.00422.77
7.4.30.0080.00816.42
7.4.00.0030.01414.92
7.3.330.0050.00213.43
7.3.320.0030.00313.21
7.3.310.0040.00416.32
7.3.300.0040.00416.31
7.3.290.0100.00516.30
7.3.280.0070.00816.34
7.3.270.0120.00817.40
7.3.260.0060.01216.44
7.3.250.0100.00816.35
7.3.240.0090.00916.61
7.3.230.0050.01316.39
7.3.210.0160.00216.54
7.3.200.0150.00619.39
7.3.190.0140.00316.73
7.3.180.0030.01316.65
7.3.170.0090.00616.64
7.3.160.0090.00616.54
7.3.120.0050.01214.97
7.3.110.0100.00714.68
7.3.100.0000.01615.00
7.3.90.0110.00414.91
7.3.80.0080.00814.99
7.3.70.0060.01014.67
7.3.60.0060.00914.85
7.3.50.0060.00314.86
7.3.40.0000.01514.68
7.3.30.0090.00014.79
7.3.20.0040.00716.79
7.3.10.0040.01116.73
7.3.00.0060.01016.70
7.2.330.0090.00816.25
7.2.320.0000.01516.35
7.2.310.0090.00916.58
7.2.300.0090.00916.48
7.2.290.0060.01016.27
7.2.250.0040.01514.67
7.2.240.0100.01014.67
7.2.230.0040.01114.93
7.2.220.0040.01115.21
7.2.210.0090.00614.84
7.2.200.0040.01114.94
7.2.190.0030.00914.91
7.2.180.0000.00915.02
7.2.170.0060.00615.00
7.2.00.0030.00918.95
7.1.330.0000.01215.53
7.1.320.0000.01315.79
7.1.310.0040.00715.68
7.1.300.0070.00715.39
7.1.290.0030.01015.64
7.1.280.0030.00615.37
7.1.270.0030.01015.59
7.1.260.0130.00315.54
7.1.100.0030.00717.72
7.1.70.0000.00816.96
7.1.60.0060.01019.33
7.1.50.0090.01316.84
7.1.00.0100.07022.34
7.0.200.0000.00716.81
7.0.140.0070.07022.07
7.0.60.0070.05719.93
7.0.50.0170.07017.79
7.0.40.0030.05320.07
7.0.30.0300.08020.02
7.0.20.0230.05020.33
7.0.10.0100.04320.10
7.0.00.0130.06020.25
5.6.280.0030.07320.91
5.6.210.0070.08720.67
5.6.200.0070.07718.16
5.6.190.0170.08320.39
5.6.180.0230.05020.64
5.6.170.0330.05320.50
5.6.160.0030.04020.55
5.6.150.0030.04018.16
5.6.140.0030.04018.28
5.6.130.0070.04018.17
5.6.120.0030.04320.98
5.6.110.0030.09021.04
5.6.100.0200.06321.13
5.6.90.0070.05721.00
5.6.80.0130.07720.53
5.5.350.0230.07320.48
5.5.340.0070.04718.03
5.5.330.0030.10020.43
5.5.320.0100.03720.32
5.5.310.0230.05320.26
5.5.300.0100.08318.07
5.5.290.0100.07718.04
5.5.280.0070.03720.88
5.5.270.0070.07020.86
5.5.260.0170.07720.88
5.5.250.0070.08020.62
5.5.240.3900.03720.27
5.4.450.0130.05719.31
5.4.440.0730.07019.60
5.4.430.0300.05719.16
5.4.420.0730.05319.30
5.4.410.1130.04719.46
5.4.400.0730.05719.15
5.4.390.0630.06319.15
5.4.380.0270.05318.57
5.4.370.0300.06018.47
5.4.360.0430.06018.63
5.4.350.0300.06718.80
5.4.340.0170.06018.82
5.4.320.0120.04212.51
5.4.310.0110.03212.50
5.4.300.0040.03912.51
5.4.290.0070.04112.50
5.4.280.0090.04912.38
5.4.270.0060.05112.37
5.4.260.0100.05212.37
5.4.250.0080.04512.38
5.4.240.0060.03612.37
5.4.230.0080.05112.37
5.4.220.0110.05812.36
5.4.210.0080.05112.36
5.4.200.0110.06112.37
5.4.190.0160.04712.36
5.4.180.0080.06012.36
5.4.170.0060.04912.36
5.4.160.0080.03512.36
5.4.150.0050.03812.36
5.4.140.0060.03812.04
5.4.130.0070.03912.03
5.4.120.0100.03511.99
5.4.110.0080.04711.98
5.4.100.0090.04811.99
5.4.90.0080.03711.99
5.4.80.0080.04011.99
5.4.70.0100.03711.98
5.4.60.0120.05011.98
5.4.50.0140.06211.98
5.4.40.0100.05311.97
5.4.30.0140.04711.97
5.4.20.0090.05211.96
5.4.10.0090.05311.97
5.4.00.0050.05611.46
5.3.290.0060.03912.80
5.3.280.0070.05212.71
5.3.270.0110.04112.73
5.3.260.0070.04112.72
5.3.250.0110.03712.72
5.3.240.0090.05312.72
5.3.230.0110.06312.71
5.3.220.0110.06212.68
5.3.210.0130.04812.68
5.3.200.0110.05112.68
5.3.190.0150.04612.67
5.3.180.0090.05312.68
5.3.170.0110.04412.67
5.3.160.0090.03812.68
5.3.150.0080.04512.68
5.3.140.0110.06912.66
5.3.130.0130.05112.66
5.3.120.0220.06312.66
5.3.110.0170.05412.66
5.3.100.0100.06212.12
5.3.90.0140.05512.08
5.3.80.0100.05712.07
5.3.70.0090.04312.08
5.3.60.0090.03712.06
5.3.50.0130.03512.00
5.3.40.0140.04212.00
5.3.30.0100.04711.95
5.3.20.0110.04911.74
5.3.10.0040.05111.70
5.3.00.0110.04711.69
5.2.170.0110.0509.19
5.2.160.0090.0329.18
5.2.150.0060.0339.19
5.2.140.0060.0339.18
5.2.130.0040.0339.14
5.2.120.0070.0289.14
5.2.110.0100.0259.15
5.2.100.0050.0299.15
5.2.90.0070.0299.14
5.2.80.0070.0309.14
5.2.70.0050.0329.13
5.2.60.0080.0339.09
5.2.50.0100.0319.07
5.2.40.0060.0409.04
5.2.30.0130.0489.02
5.2.20.0170.0379.00
5.2.10.0050.0408.91
5.2.00.0080.0418.79
5.1.60.0060.0308.07
5.1.50.0070.0258.07
5.1.40.0040.0278.05
5.1.30.0030.0328.39
5.1.20.0050.0278.42
5.1.10.0060.0258.15
5.1.00.0040.0278.15
5.0.50.0080.0186.62
5.0.40.0050.0196.48
5.0.30.0030.0336.29
5.0.20.0020.0226.27
5.0.10.0030.0286.24
5.0.00.0000.0356.23
4.4.90.0030.0174.78
4.4.80.0030.0164.76
4.4.70.0060.0194.75
4.4.60.0060.0194.76
4.4.50.0040.0214.77
4.4.40.0010.0374.71
4.4.30.0020.0234.76
4.4.20.0020.0184.85
4.4.10.0010.0184.85
4.4.00.0060.0314.76
4.3.110.0030.0344.67
4.3.100.0030.0224.67
4.3.90.0020.0224.64
4.3.80.0040.0334.58
4.3.70.0020.0224.63
4.3.60.0050.0194.63
4.3.50.0000.0264.63
4.3.40.0020.0354.54
4.3.30.0010.0233.29
4.3.20.0040.0203.27
4.3.10.0040.0203.24
4.3.00.0270.02310.37

preferences:
40.17 ms | 401 KiB | 5 Q