3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; for($f = 0; $f <= 20; $f++) { echo "F".$f." = ".intval((($f*$f-1)+$f*$f-2))."\n"; $i++; }

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.70.0070.00716.63
8.3.60.0070.01118.30
8.3.50.0130.00821.87
8.3.40.0070.00718.67
8.3.30.0070.00719.08
8.3.20.0050.00320.36
8.3.10.0070.00023.61
8.3.00.0040.00419.38
8.2.180.0140.00316.38
8.2.170.0170.00322.96
8.2.160.0160.00020.47
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00022.02
8.2.110.0060.00321.91
8.2.100.0030.01019.64
8.2.90.0080.00018.98
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0040.00417.78
8.2.50.0030.00618.07
8.2.40.0080.00019.93
8.2.30.0040.00418.15
8.2.20.0000.00817.62
8.2.10.0040.00418.11
8.2.00.0040.00417.68
8.1.280.0140.00325.92
8.1.270.0090.00022.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.82
8.1.230.0060.00618.88
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.22
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00918.65
8.1.160.0000.00721.89
8.1.150.0040.00418.94
8.1.140.0030.00517.45
8.1.130.0000.00817.89
8.1.120.0000.00717.49
8.1.110.0040.00417.42
8.1.100.0040.00417.49
8.1.90.0040.00417.53
8.1.80.0070.00017.34
8.1.70.0030.00317.42
8.1.60.0040.00417.62
8.1.50.0030.00517.50
8.1.40.0040.00417.54
8.1.30.0040.00417.64
8.1.20.0000.00717.61
8.1.10.0000.00717.38
8.1.00.0080.00017.48
8.0.300.0060.00318.77
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00717.16
8.0.260.0040.00417.22
8.0.250.0000.00716.84
8.0.240.0040.00416.98
8.0.230.0060.00016.86
8.0.220.0000.00716.94
8.0.210.0030.00316.88
8.0.200.0000.00616.99
8.0.190.0030.00416.84
8.0.180.0040.00416.79
8.0.170.0040.00416.84
8.0.160.0070.00016.79
8.0.150.0000.00816.96
8.0.140.0030.00316.85
8.0.130.0000.00613.38
8.0.120.0000.01016.86
8.0.110.0030.00316.74
8.0.100.0050.00216.88
8.0.90.0000.00716.86
8.0.80.0120.00916.89
8.0.70.0000.00717.00
8.0.60.0040.00416.77
8.0.50.0000.00716.72
8.0.30.0130.01217.13
8.0.20.0050.01417.40
8.0.10.0040.00416.88
8.0.00.0140.00716.81
7.4.330.0050.00015.02
7.4.320.0000.00616.49
7.4.300.0000.00616.59
7.4.290.0080.00016.64
7.4.280.0080.00016.61
7.4.270.0000.00716.49
7.4.260.0000.01016.59
7.4.250.0000.00716.42
7.4.240.0030.00416.61
7.4.230.0040.00416.30
7.4.220.0100.00716.46
7.4.210.0000.01416.69
7.4.200.0050.00216.25
7.4.160.0090.00616.41
7.4.150.0140.00617.40
7.4.140.0110.00717.86
7.4.130.0080.01316.58
7.4.120.0110.00616.52
7.4.110.0070.01116.45
7.4.100.0120.00616.51
7.4.90.0110.00716.56
7.4.80.0100.00619.39
7.4.70.0100.01016.52
7.4.60.0090.01316.57
7.4.50.0030.00616.65
7.4.40.0060.01316.43
7.4.30.0070.01016.34
7.4.00.0090.00914.86
7.3.330.0070.00012.96
7.3.320.0030.00313.02
7.3.310.0000.00716.33
7.3.300.0050.00216.27
7.3.290.0090.00916.25
7.3.280.0090.00816.23
7.3.270.0090.00917.40
7.3.260.0060.01216.52
7.3.250.0080.00916.45
7.3.240.0190.00016.44
7.3.230.0080.00816.39
7.3.210.0130.01016.45
7.3.200.0050.01519.39
7.3.190.0150.00316.49
7.3.180.0060.01016.33
7.3.170.0070.01016.57
7.3.160.0090.00916.47
7.2.330.0140.00316.63
7.2.320.0140.00416.23
7.2.310.0140.00816.86
7.2.300.0070.01616.49
7.2.290.0070.01116.46
7.2.00.0060.00919.37
7.1.100.0000.01317.82
7.1.70.0040.00417.19
7.1.60.0140.00319.11
7.1.50.0030.02217.12
7.1.00.0100.07022.40
7.0.200.8200.01014.86
7.0.140.0070.06722.08
7.0.60.0070.09020.01
7.0.50.0070.05017.88
7.0.40.0000.09020.28
7.0.30.0330.04720.09
7.0.20.0270.05320.02
7.0.10.0300.05020.01
7.0.00.0100.08320.00
5.6.280.0030.07321.06
5.6.210.0000.04720.61
5.6.200.0000.07018.15
5.6.190.0100.06020.67
5.6.180.0300.07720.49
5.6.170.0100.05020.48
5.6.160.0100.08320.43
5.6.150.0070.03718.15
5.6.140.0030.04018.20
5.6.130.0070.07318.11
5.6.120.0100.08021.14
5.6.110.0130.08320.95
5.6.100.0070.04720.98
5.6.90.0070.08321.02
5.6.80.0070.08020.40
5.6.70.4570.03020.39
5.5.350.0100.08320.30
5.5.340.0070.03318.02
5.5.330.0100.08020.25
5.5.320.0230.04020.28
5.5.310.0200.07020.14
5.5.300.0030.04017.98
5.5.290.0100.08017.88
5.5.280.0070.04020.84
5.5.270.0070.07320.73
5.5.260.0070.08320.97
5.5.250.0030.06720.68
5.5.240.0230.05720.28
5.4.450.0500.07319.32
5.4.440.0070.06019.57
5.4.430.0500.05719.57
5.4.420.0670.00019.45
5.4.410.0830.00019.34
5.4.400.0630.00019.03
5.4.390.0830.00019.18
5.4.380.0630.00019.07
5.4.370.0630.00019.06
5.4.360.0630.00019.09
5.4.350.0670.00019.07
5.4.340.0060.03611.97
5.4.320.0060.03912.45
5.4.310.0090.03712.45
5.4.300.0070.04412.45
5.4.290.0080.03612.45
5.4.280.0040.03712.34
5.4.270.0060.03512.34
5.4.260.0040.04012.34
5.4.250.0050.03812.34
5.4.240.0080.03412.34
5.4.230.0040.03912.34
5.4.220.0050.03612.34
5.4.210.0040.03612.34
5.4.200.0070.03612.34
5.4.190.0040.03712.33
5.4.180.0070.03512.34
5.4.170.0030.03912.35
5.4.160.0060.03512.34
5.4.150.0070.03512.34
5.4.140.0050.03812.02
5.4.130.0070.03312.01
5.4.120.0050.03711.96
5.4.110.0090.03111.96
5.4.100.0040.03811.96
5.4.90.0060.03611.96
5.4.80.0070.03511.96
5.4.70.0070.03211.96
5.4.60.0040.04911.96
5.4.50.0050.03811.96
5.4.40.0030.03711.95
5.4.30.0060.03511.95
5.4.20.0060.03511.95
5.4.10.0030.03611.94
5.4.00.0050.03611.43
5.3.290.0050.04012.80
5.3.280.0080.03512.71
5.3.270.0040.04112.72
5.3.260.0070.03812.72
5.3.250.0080.03612.72
5.3.240.0060.04212.72
5.3.230.0140.04712.71
5.3.220.0120.04212.68
5.3.210.0030.04112.68
5.3.200.0080.03412.68
5.3.190.0030.04012.67
5.3.180.0060.03612.67
5.3.170.0050.03712.67
5.3.160.0060.03612.67
5.3.150.0060.03712.67
5.3.140.0050.03812.66
5.3.130.0030.04212.66
5.3.120.0080.03712.66
5.3.110.0050.04112.66
5.3.100.0010.04212.11
5.3.90.0060.03612.08
5.3.80.0040.03912.07
5.3.70.0050.03712.07
5.3.60.0030.03912.07
5.3.50.0060.03612.00
5.3.40.0060.03612.00
5.3.30.0050.03511.95
5.3.20.0050.03811.72
5.3.10.0070.03311.69
5.3.00.0060.03511.68
5.2.170.0040.0309.18
5.2.160.0060.0279.18
5.2.150.0040.0309.18
5.2.140.0050.0299.17
5.2.130.0040.0299.13
5.2.120.0040.0299.13
5.2.110.0030.0319.14
5.2.100.0010.0329.14
5.2.90.0030.0319.14
5.2.80.0050.0309.13
5.2.70.0040.0359.13
5.2.60.0060.0309.09
5.2.50.0020.0329.05
5.2.40.0070.0319.03
5.2.30.0020.0319.01
5.2.20.0060.0279.00
5.2.10.0030.0298.94
5.2.00.0040.0288.79
5.1.60.0030.0248.08
5.1.50.0060.0228.07
5.1.40.0040.0248.05
5.1.30.0070.0258.41
5.1.20.0030.0278.43
5.1.10.0040.0268.15
5.1.00.0030.0268.15
5.0.50.0040.0196.63
5.0.40.0060.0166.49
5.0.30.0060.0296.30
5.0.20.0070.0186.27
5.0.10.0020.0216.25
5.0.00.0050.0296.24
4.4.90.0040.0144.78
4.4.80.0050.0134.76
4.4.70.0030.0154.75
4.4.60.0030.0154.76
4.4.50.0010.0174.77
4.4.40.0030.0254.70
4.4.30.0010.0174.76
4.4.20.0040.0144.84
4.4.10.0010.0174.85
4.4.00.0030.0244.76
4.3.110.0030.0164.66
4.3.100.0020.0164.67
4.3.90.0030.0144.64
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0030.0204.63
4.3.50.0020.0164.63
4.3.40.0020.0254.54
4.3.30.0020.0173.29
4.3.20.0020.0203.27
4.3.10.0020.0163.23
4.3.00.0030.0207.23

preferences:
57.53 ms | 401 KiB | 5 Q