3v4l.org

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

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.0030.01016.63
8.3.50.0080.00721.92
8.3.40.0140.00018.51
8.3.30.0100.01018.79
8.3.20.0070.00020.12
8.3.10.0040.00718.52
8.3.00.0000.00819.25
8.2.180.0070.00716.50
8.2.170.0140.00022.96
8.2.160.0060.00920.35
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.11
8.2.110.0030.00719.34
8.2.100.0070.00417.72
8.2.90.0050.00318.92
8.2.80.0000.00817.97
8.2.70.0040.00417.25
8.2.60.0060.00317.90
8.2.50.0060.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00719.44
8.2.20.0020.00517.61
8.2.10.0000.00718.03
8.2.00.0000.00817.55
8.1.280.0100.01025.92
8.1.270.0000.00822.18
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0060.00320.74
8.1.230.0040.00717.46
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0000.00816.98
8.1.180.0060.00318.10
8.1.170.0030.00518.45
8.1.160.0000.00721.85
8.1.150.0000.00718.77
8.1.140.0000.00817.30
8.1.130.0040.00417.70
8.1.120.0030.00317.39
8.1.110.0000.00717.31
8.1.100.0040.00417.37
8.1.90.0000.00817.32
8.1.80.0000.00717.18
8.1.70.0070.00017.20
8.1.60.0030.00517.45
8.1.50.0040.00417.26
8.1.40.0040.00417.34
8.1.30.0040.00417.40
8.1.20.0040.00417.52
8.1.10.0080.00017.38
8.1.00.0070.00017.32
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0070.00018.30
8.0.270.0030.00317.12
8.0.260.0030.00317.13
8.0.250.0060.00016.68
8.0.240.0040.00416.83
8.0.230.0060.00316.84
8.0.220.0030.00316.73
8.0.210.0030.00316.80
8.0.200.0040.00416.68
8.0.190.0000.00816.72
8.0.180.0040.00416.68
8.0.170.0000.00816.86
8.0.160.0040.00416.85
8.0.150.0070.00016.61
8.0.140.0050.00216.62
8.0.130.0000.00813.17
8.0.120.0060.00316.72
8.0.110.0040.00416.75
8.0.100.0000.00716.61
8.0.90.0000.00716.66
8.0.80.0090.00616.66
8.0.70.0040.00416.72
8.0.60.0000.00716.65
8.0.50.0000.00716.66
8.0.30.0090.00916.89
8.0.20.0140.00417.40
8.0.10.0040.00416.80
8.0.00.0080.01016.64
7.4.330.0030.00315.00
7.4.320.0040.00416.29
7.4.300.0030.00316.46
7.4.290.0030.00316.45
7.4.280.0040.00416.25
7.4.270.0070.00016.39
7.4.260.0040.00416.40
7.4.250.0030.00516.43
7.4.240.0030.00316.30
7.4.230.0000.00716.55
7.4.220.0080.01216.52
7.4.210.0070.01416.48
7.4.200.0070.00016.25
7.4.160.0060.01016.37
7.4.150.0100.00917.40
7.4.140.0110.00717.86
7.4.130.0080.00816.40
7.4.120.0130.00316.46
7.4.110.0030.01316.17
7.4.100.0060.01516.41
7.4.90.0070.01016.45
7.4.80.0110.00619.39
7.4.70.0060.01016.38
7.4.60.0000.01616.43
7.4.50.0040.00416.01
7.4.40.0080.00816.19
7.4.30.0120.00416.29
7.4.00.0130.00314.87
7.3.330.0030.00313.04
7.3.320.0000.00513.16
7.3.310.0060.00016.27
7.3.300.0000.00716.17
7.3.290.0130.00716.17
7.3.280.0100.01016.15
7.3.270.0140.00317.40
7.3.260.0120.01316.34
7.3.250.0080.00816.30
7.3.240.0000.01516.45
7.3.230.0090.00816.39
7.3.210.0150.00916.17
7.3.200.0090.01119.39
7.3.190.0040.01516.37
7.3.180.0110.01116.25
7.3.170.0070.01116.27
7.3.160.0120.00316.40
7.2.330.0130.01016.41
7.2.320.0030.01416.36
7.2.310.0030.01416.48
7.2.300.0060.01016.36
7.2.290.0150.00616.29
7.2.00.0090.00619.27
7.1.100.0000.01117.97
7.1.70.0030.00316.98
7.1.60.0120.01219.61
7.1.50.0120.01216.81
7.1.00.0000.08022.36
7.0.200.0030.00616.62
7.0.140.0030.07322.07
7.0.60.0130.07019.85
7.0.50.0030.08017.86
7.0.40.0070.06320.02
7.0.30.0230.04020.24
7.0.20.0470.07320.08
7.0.10.0030.04320.25
7.0.00.0030.04320.07
5.6.280.0000.07321.09
5.6.210.0000.06720.46
5.6.200.0070.06718.21
5.6.190.0070.09320.77
5.6.180.0270.08320.50
5.6.170.0300.06020.39
5.6.160.0170.04320.54
5.6.150.0070.07018.17
5.6.140.0100.05718.18
5.6.130.0030.09018.22
5.6.120.0030.07721.11
5.6.110.0130.07720.98
5.6.100.0070.07021.00
5.6.90.0100.06720.95
5.6.80.0130.07320.40
5.5.350.0200.05320.40
5.5.340.0030.07718.01
5.5.330.0100.08020.35
5.5.320.0000.05020.20
5.5.310.0300.08020.28
5.5.300.0130.07318.07
5.5.290.0130.03018.08
5.5.280.0170.07320.76
5.5.270.0070.08720.86
5.5.260.0070.08720.83
5.5.250.0070.03720.71
5.5.240.0130.07020.13
5.4.450.0500.06019.39
5.4.440.0570.07319.49
5.4.430.0800.06019.18
5.4.420.0800.06019.38
5.4.410.0470.05319.48
5.4.400.0900.05319.29
5.4.390.0070.07319.20
5.4.380.0230.05718.51
5.4.370.0330.06318.62
5.4.360.0230.06318.83
5.4.350.0300.06018.62
5.4.340.0370.05318.71
5.4.320.0110.03412.51
5.4.310.0060.04812.51
5.4.300.0070.03612.51
5.4.290.0040.04012.51
5.4.280.0050.03712.40
5.4.270.0060.04312.40
5.4.260.0110.04412.40
5.4.250.0060.03812.40
5.4.240.0080.03712.40
5.4.230.0070.03812.39
5.4.220.0050.04612.39
5.4.210.0070.03712.39
5.4.200.0090.03712.39
5.4.190.0060.04012.39
5.4.180.0070.03412.39
5.4.170.0080.04312.40
5.4.160.0070.04512.39
5.4.150.0120.03712.39
5.4.140.0070.03612.08
5.4.130.0090.04312.06
5.4.120.0070.04312.02
5.4.110.0050.03912.03
5.4.100.0140.03712.02
5.4.90.0080.04512.02
5.4.80.0100.03712.02
5.4.70.0100.04012.02
5.4.60.0050.03612.02
5.4.50.0050.03712.02
5.4.40.0050.03812.01
5.4.30.0090.03312.00
5.4.20.0080.04012.00
5.4.10.0090.03412.00
5.4.00.0030.03711.50

preferences:
40.72 ms | 401 KiB | 5 Q