3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace ns01 { class cl01 { const ONE1 = 1 +1; const ONE2 = 34 - 34; const ONE3 = true; const ONE4 = !self::ONE3; } }

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.00016.63
8.3.50.0050.01221.96
8.3.40.0120.00318.77
8.3.30.0120.00618.82
8.3.20.0070.00020.16
8.3.10.0000.01018.58
8.3.00.0030.00519.26
8.2.180.0110.00416.50
8.2.170.0110.00422.96
8.2.160.0100.00320.41
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.00
8.2.110.0110.00720.27
8.2.100.0080.00317.66
8.2.90.0040.00418.97
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0050.00218.09
8.2.30.0070.00019.47
8.2.20.0000.00817.41
8.2.10.0030.00517.80
8.2.00.0050.00317.54
8.1.280.0170.00325.92
8.1.270.0050.00322.09
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.11
8.1.230.0120.00017.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0110.00017.13
8.1.180.0060.00318.10
8.1.170.0080.00018.65
8.1.160.0000.00821.95
8.1.150.0040.00418.74
8.1.140.0040.00417.19
8.1.130.0000.00717.74
8.1.120.0000.00717.32
8.1.110.0000.00717.37
8.1.100.0040.00417.25
8.1.90.0040.00417.24
8.1.80.0040.00417.21
8.1.70.0030.00317.32
8.1.60.0040.00417.34
8.1.50.0000.00717.42
8.1.40.0000.00717.26
8.1.30.0050.00317.44
8.1.20.0050.00317.49
8.1.10.0000.00717.39
8.1.00.0040.00417.23
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0070.00018.26
8.0.270.0050.00317.13
8.0.260.0000.00617.04
8.0.250.0030.00316.86
8.0.240.0030.00316.82
8.0.230.0030.00316.83
8.0.220.0000.00716.80
8.0.210.0000.00716.71
8.0.200.0000.00816.73
8.0.190.0020.00516.68
8.0.180.0000.00716.76
8.0.170.0070.00016.76
8.0.160.0050.00216.64
8.0.150.0030.00316.75
8.0.140.0000.00716.75
8.0.130.0070.00013.20
8.0.120.0030.00616.75
8.0.110.0020.00516.82
8.0.100.0040.00416.66
8.0.90.0070.00016.65
8.0.80.0200.01016.69
8.0.70.0040.00416.57
8.0.60.0040.00416.65
8.0.50.0070.00016.74
8.0.30.0140.00517.02
8.0.20.0030.01517.40
8.0.10.0040.00416.90
8.0.00.0080.01116.66
7.4.330.0000.00515.05
7.4.320.0000.00716.45
7.4.300.0030.00316.52
7.4.290.0000.00616.40
7.4.280.0000.00716.34
7.4.270.0000.00616.27
7.4.260.0000.00716.27
7.4.250.0040.00416.38
7.4.240.0060.00216.41
7.4.230.0000.00716.52
7.4.220.0190.00016.53
7.4.210.0040.01116.49
7.4.200.0030.00316.20
7.4.160.0070.01116.30
7.4.150.0130.00817.40
7.4.140.0100.00717.86
7.4.130.0070.01016.23
7.4.120.0060.01216.33
7.4.110.0030.01416.38
7.4.100.0100.00716.62
7.4.90.0090.00816.20
7.4.80.0070.01419.39
7.4.70.0130.00316.30
7.4.60.0030.01316.38
7.4.50.0030.00516.10
7.4.40.0040.01216.19
7.4.30.0060.00916.34
7.4.00.0030.01315.06
7.3.330.0060.00012.98
7.3.320.0000.00513.11
7.3.310.0000.00716.12
7.3.300.0060.00016.18
7.3.290.0060.01116.23
7.3.280.0100.00716.22
7.3.270.0100.00717.40
7.3.260.0090.00916.43
7.3.250.0170.00516.27
7.3.240.0100.00616.42
7.3.230.0070.01116.39
7.3.210.0110.01116.37
7.3.200.0130.00919.39
7.3.190.0080.00816.19
7.3.180.0090.01216.15
7.3.170.0100.00716.27
7.3.160.0070.00716.16
7.2.330.0110.00616.27
7.2.320.0080.00816.58
7.2.310.0110.01116.61
7.2.300.0030.01316.61
7.2.290.0060.00916.22
7.2.60.0000.01516.47
7.2.00.0000.01219.11
7.1.200.0080.00415.52
7.1.100.0060.00617.54
7.1.70.0090.00616.84
7.1.60.0100.01419.61
7.1.50.0070.01416.74
7.1.00.0100.07022.41
7.0.200.0030.00716.63
7.0.140.0100.06722.08
7.0.60.0100.06719.94
7.0.50.0000.04317.94
7.0.40.0030.06720.27
7.0.30.0500.05720.09
7.0.20.0300.04720.37
7.0.10.0030.05320.05
7.0.00.0070.04320.22
5.6.280.0030.07321.04
5.6.210.0070.08020.53
5.6.200.0100.03718.29
5.6.190.0030.04320.77
5.6.180.0430.07720.39
5.6.170.0330.07020.46
5.6.160.0100.08020.71
5.6.150.0130.07718.18
5.6.140.0030.08718.15
5.6.130.0100.07718.17
5.6.120.0030.09020.93
5.6.110.0030.04321.00
5.6.100.0100.05721.04
5.6.90.0070.07321.11
5.6.80.0030.04720.40
5.5.350.0170.07320.30
5.5.340.0070.03718.09
5.5.330.0030.04020.13
5.5.320.0330.06020.24
5.5.310.0270.05020.26
5.5.300.0000.04717.98
5.5.290.0100.07018.06
5.5.280.0100.03720.68
5.5.270.0070.04720.84
5.5.260.0070.08020.79
5.5.250.0000.05020.42
5.5.240.0100.08020.22
5.4.450.0170.08319.27
5.4.440.0170.07019.27
5.4.430.0170.03719.55
5.4.420.0200.03319.23
5.4.410.0130.04719.39
5.4.400.0170.03719.09
5.4.390.0100.04019.06
5.4.380.0230.03019.06
5.4.370.0200.03019.24
5.4.360.0200.03319.09
5.4.350.0270.03719.08
5.4.340.0200.03319.08
5.4.320.0270.03718.95
5.4.310.0170.04319.00
5.4.300.0170.03719.22
5.4.290.0100.04019.07
5.4.280.0200.03018.85
5.4.270.0170.04319.05
5.4.260.0070.04019.20
5.4.250.0170.03318.87
5.4.240.0230.06319.13
5.4.230.0170.07719.18
5.4.220.0170.04319.07
5.4.210.0270.03719.23
5.4.200.0270.04718.84
5.4.190.0230.06319.13
5.4.180.0300.07018.98
5.4.170.0230.07319.31
5.4.160.0330.05719.17
5.4.150.0200.07318.97
5.4.140.0230.06716.46
5.4.130.0170.04316.45
5.4.120.0200.06316.35
5.4.110.0230.07016.27
5.4.100.0200.04316.28
5.4.90.0270.06016.45
5.4.80.0270.06716.23
5.4.70.0130.04016.54
5.4.60.0200.03316.54
5.4.50.0170.03316.23
5.4.40.0130.04316.33
5.4.30.0130.04016.56
5.4.20.0230.04316.55
5.4.10.0200.03016.23
5.4.00.0170.03315.79

preferences:
57.39 ms | 401 KiB | 5 Q