3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace BAR { echo A; new foo(); } namespace BAR { const A = 'a'; class foo {} echo 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.4.20.0070.01317.77
8.4.10.0080.00019.57
8.3.150.0060.01216.60
8.3.140.0070.00316.41
8.3.130.0030.00716.70
8.3.120.0060.01020.50
8.3.110.0050.00516.73
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0030.00616.63
8.3.70.0110.00416.58
8.3.60.0120.00318.33
8.3.50.0100.01122.84
8.3.40.0090.00918.74
8.3.30.0070.00718.84
8.3.20.0070.00020.07
8.3.10.0050.00521.60
8.3.00.0040.00419.79
8.2.270.0110.00716.95
8.2.260.0000.00818.46
8.2.250.0100.00016.58
8.2.240.0160.00017.09
8.2.230.0040.00420.94
8.2.220.0030.00637.54
8.2.210.0080.01126.77
8.2.200.0060.00316.50
8.2.190.0080.00816.88
8.2.180.0070.00718.26
8.2.170.0090.00622.96
8.2.160.0080.00621.05
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.51
8.2.110.0100.00019.30
8.2.100.0040.00717.91
8.2.90.0040.00417.91
8.2.80.0040.00419.11
8.2.70.0060.00317.63
8.2.60.0030.00618.03
8.2.50.0040.00418.10
8.2.40.0050.00322.08
8.2.30.0030.00521.09
8.2.20.0000.00717.80
8.2.10.0040.00417.96
8.2.00.0040.00418.05
8.1.310.0070.00018.53
8.1.300.0150.00416.25
8.1.290.0080.00318.88
8.1.280.0120.00325.92
8.1.270.0080.00023.97
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0160.00619.38
8.1.230.0040.00722.77
8.1.220.0030.00517.75
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.25
8.1.180.0000.00718.10
8.1.170.0030.00618.50
8.1.160.0030.00522.05
8.1.150.0040.00420.67
8.1.140.0040.00419.44
8.1.130.0070.00017.68
8.1.120.0040.00417.36
8.1.110.0040.00417.38
8.1.100.0000.00717.43
8.1.90.0000.01017.36
8.1.80.0060.00317.39
8.1.70.0000.00717.40
8.1.60.0080.00017.57
8.1.50.0060.00317.50
8.1.40.0060.00617.43
8.1.30.0080.00017.52
8.1.20.0040.00417.57
8.1.10.0000.00817.54
8.1.00.0000.00717.36
8.0.300.0040.00421.94
8.0.290.0050.00316.75
8.0.280.0030.00318.44
8.0.270.0000.00717.17
8.0.260.0040.00417.25
8.0.250.0000.00717.04
8.0.240.0040.00717.02
8.0.230.0040.00416.88
8.0.220.0050.00216.97
8.0.210.0030.00316.91
8.0.200.0040.00416.91
8.0.190.0070.00017.05
8.0.180.0070.00416.96
8.0.170.0040.00417.02
8.0.160.0000.00816.89
8.0.150.0040.00416.99
8.0.140.0000.00816.93
8.0.130.0000.00513.33
8.0.120.0030.00516.89
8.0.110.0000.00716.89
8.0.100.0030.00517.04
8.0.90.0080.00016.94
8.0.80.0000.01516.96
8.0.70.0060.00316.84
8.0.60.0080.00016.85
8.0.50.0040.00416.81
8.0.30.0100.00717.14
8.0.20.0110.00817.40
8.0.10.0020.00516.97
8.0.00.0140.01016.62
7.4.330.0000.00515.08
7.4.320.0030.00316.48
7.4.300.0000.00616.50
7.4.290.0040.00416.44
7.4.280.0000.00716.43
7.4.270.0000.00716.52
7.4.260.0000.00716.37
7.4.250.0040.00416.48
7.4.240.0040.00416.49
7.4.230.0000.00716.52
7.4.220.0030.01416.39
7.4.210.0070.01116.52
7.4.200.0040.00416.50
7.4.160.0080.00716.52
7.4.150.0170.00017.40
7.4.140.0120.00817.86
7.4.130.0080.00916.49
7.4.120.0110.00916.47
7.4.110.0130.00316.34
7.4.100.0090.00916.45
7.4.90.0130.00316.57
7.4.80.0100.00719.39
7.4.70.0150.00616.57
7.4.60.0070.01016.24
7.4.50.0140.00016.41
7.4.40.0120.00916.49
7.4.30.0100.00716.42
7.4.00.0000.01315.02
7.3.330.0030.00313.31
7.3.320.0030.00313.24
7.3.310.0000.00716.24
7.3.300.0040.00416.29
7.3.290.0070.00716.23
7.3.280.0100.01016.27
7.3.270.0080.00817.40
7.3.260.0090.00716.31
7.3.250.0130.00716.45
7.3.240.0080.01116.57
7.3.230.0110.00616.39
7.3.210.0090.00616.51
7.3.200.0150.00316.37
7.3.190.0080.00916.61
7.3.180.0180.00316.21
7.3.170.0070.01016.46
7.3.160.0160.00316.31
7.2.330.0090.01216.43
7.2.320.0130.01016.50
7.2.310.0030.01316.69
7.2.300.0110.00716.60
7.2.290.0110.01016.35
7.2.60.0060.00916.57
7.2.50.0000.01016.73
7.2.00.0000.01219.20
7.1.200.0050.00515.56
7.1.70.0040.00416.69
7.1.60.0070.00319.75
7.1.50.0220.00934.74
7.1.00.0100.07022.51
7.0.200.0070.00716.56
7.0.90.0300.05319.94
7.0.80.0130.06019.99
7.0.70.0170.06019.93
7.0.60.0130.06319.94
7.0.50.0100.06720.25
7.0.40.0300.07020.38
7.0.30.0130.06320.17
7.0.20.0070.06720.21
7.0.10.0130.05720.32
7.0.00.0170.05320.30
5.6.230.0070.06020.57
5.6.220.0170.05320.70
5.6.210.0130.05320.57
5.6.200.0200.05721.09
5.6.190.0170.06321.02
5.6.180.0100.06021.09
5.6.170.0370.04321.09
5.6.160.0170.06021.02
5.6.150.0100.06321.07
5.6.140.0130.06021.08
5.6.130.0200.05321.07
5.6.120.0170.06321.05
5.6.110.0200.05021.00
5.6.100.0170.05321.12
5.6.90.0170.06021.00
5.6.80.0070.06320.48
5.6.70.0170.07020.46
5.6.60.0130.05320.45
5.6.50.0170.05720.52
5.6.40.0100.06720.43
5.6.30.0230.05020.38
5.6.20.0130.06720.46
5.6.10.0070.06320.39
5.6.00.0130.05720.35

preferences:
29.65 ms | 403 KiB | 5 Q