3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace BAR { echo A; new foo(); } namespace BAR { const A = 'a'; class foo {} }

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.10.0040.00419.52
8.3.140.0000.00916.77
8.3.130.0000.00918.69
8.3.120.0030.00519.11
8.3.110.0050.00318.32
8.3.100.0030.00616.57
8.3.90.0060.00326.77
8.3.80.0090.00019.36
8.3.70.0150.00416.38
8.3.60.0110.00718.55
8.3.50.0120.01223.00
8.3.40.0040.01118.61
8.3.30.0040.01118.67
8.3.20.0040.00420.16
8.3.10.0080.00021.90
8.3.00.0070.00019.91
8.2.250.0040.00816.81
8.2.240.0120.00618.71
8.2.230.0080.00020.94
8.2.220.0040.00424.06
8.2.210.0070.01326.77
8.2.200.0060.00318.88
8.2.190.0060.00918.54
8.2.180.0170.00318.54
8.2.170.0100.00722.96
8.2.160.0070.00721.11
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00219.76
8.2.110.0070.00320.38
8.2.100.0060.00618.02
8.2.90.0030.00519.27
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00317.74
8.2.50.0040.00418.10
8.2.40.0040.00422.36
8.2.30.0000.00719.16
8.2.20.0050.00217.75
8.2.10.0050.00318.07
8.2.00.0020.00517.92
8.1.300.0110.00716.05
8.1.290.0060.00330.84
8.1.280.0120.00425.92
8.1.270.0080.00023.88
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00019.15
8.1.230.0070.00417.64
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0000.00722.05
8.1.150.0000.00720.68
8.1.140.0000.00717.41
8.1.130.0040.00417.39
8.1.120.0070.00017.40
8.1.110.0050.00317.40
8.1.100.0000.00817.29
8.1.90.0060.00317.44
8.1.80.0040.00417.41
8.1.70.0000.00817.29
8.1.60.0000.00717.41
8.1.50.0040.00417.39
8.1.40.0060.00617.45
8.1.30.0040.00417.48
8.1.20.0000.00817.50
8.1.10.0050.00217.43
8.1.00.0020.00517.48
8.0.300.0050.00218.77
8.0.290.0080.00016.75
8.0.280.0030.00318.39
8.0.270.0000.00716.93
8.0.260.0060.00016.78
8.0.250.0030.00317.02
8.0.240.0080.00317.02
8.0.230.0030.00316.97
8.0.220.0000.00716.83
8.0.210.0000.00716.93
8.0.200.0070.00016.91
8.0.190.0040.00416.91
8.0.180.0060.00316.94
8.0.170.0040.00417.01
8.0.160.0040.00416.96
8.0.150.0040.00416.94
8.0.140.0030.00516.94
8.0.130.0030.00313.41
8.0.120.0000.00816.92
8.0.110.0000.00716.90
8.0.100.0040.00416.73
8.0.90.0030.00316.91
8.0.80.0040.01116.91
8.0.70.0050.00316.88
8.0.60.0060.00316.75
8.0.50.0040.00416.99
8.0.30.0100.00817.15
8.0.20.0080.01017.40
8.0.10.0000.00716.89
8.0.00.0130.00616.75
7.4.330.0000.00515.08
7.4.320.0060.00016.45
7.4.300.0030.00316.36
7.4.290.0030.00316.52
7.4.280.0000.00816.51
7.4.270.0030.00316.51
7.4.260.0000.00716.57
7.4.250.0080.00016.39
7.4.240.0070.00016.43
7.4.230.0070.00016.65
7.4.220.0140.00316.58
7.4.210.0070.00716.53
7.4.200.0050.00216.46
7.4.160.0090.00616.55
7.4.150.0130.00617.40
7.4.140.0150.00417.86
7.4.130.0130.00916.54
7.4.120.0150.00516.56
7.4.110.0100.00716.55
7.4.100.0130.00316.80
7.4.90.0110.00716.58
7.4.80.0110.00519.39
7.4.70.0140.00316.42
7.4.60.0160.00016.63
7.4.50.0100.00716.39
7.4.40.0120.00616.33
7.4.30.0090.00616.25
7.4.00.0090.00614.85
7.3.330.0000.00513.11
7.3.320.0060.00013.29
7.3.310.0000.00716.14
7.3.300.0030.00316.30
7.3.290.0090.00716.28
7.3.280.0100.01016.28
7.3.270.0060.01117.40
7.3.260.0120.00516.42
7.3.250.0110.01116.33
7.3.240.0090.01016.34
7.3.230.0160.00016.43
7.3.210.0130.00316.47
7.3.200.0110.00516.47
7.3.190.0130.00316.29
7.3.180.0060.01316.47
7.3.170.0180.00016.15
7.3.160.0080.00816.38
7.3.10.0050.00716.37
7.3.00.0040.00616.44
7.2.330.0030.01416.55
7.2.320.0100.00716.72
7.2.310.0130.00716.68
7.2.300.0100.01016.61
7.2.290.0120.00516.52
7.2.130.0050.00916.67
7.2.120.0060.00816.79
7.2.110.0050.00716.85
7.2.100.0020.01016.86
7.2.90.0050.00616.85
7.2.80.0060.00616.97
7.2.70.0070.00516.80
7.2.60.0080.00716.77
7.2.50.0080.00516.84
7.2.40.0110.01217.22
7.2.30.0110.00917.29
7.2.20.0140.00717.28
7.2.10.0120.00817.29
7.2.00.0120.00617.72
7.1.250.0080.00515.37
7.1.200.0070.00015.58
7.1.160.0880.01216.66
7.1.150.0270.01516.83
7.1.140.0190.01316.75
7.1.130.0260.00916.83
7.1.120.0210.00816.26
7.1.110.0220.00916.16
7.1.100.0230.00716.07
7.1.90.0180.01015.97
7.1.80.0210.00815.83
7.1.70.0090.00815.99
7.1.60.0220.01026.49
7.1.50.0240.00833.81
7.1.40.0370.01232.33
7.1.30.0370.00932.51
7.1.20.0350.01032.57
7.1.10.0180.01514.76
7.1.00.0110.04518.57
7.0.290.0310.01116.30
7.0.270.0230.01416.20
7.0.260.0240.01216.50
7.0.250.0290.00815.79
7.0.240.0220.00716.07
7.0.230.0230.00815.86
7.0.220.0260.01015.81
7.0.210.0240.00814.55
7.0.200.0130.01115.81
7.0.190.0230.01514.45
7.0.180.0250.01014.36
7.0.170.0200.01114.36
7.0.160.0250.00714.39
7.0.150.0230.01114.52
7.0.140.0230.01014.31
7.0.130.0220.00814.66
7.0.120.0220.01014.60
7.0.110.0220.00914.25
7.0.100.0110.04217.16
7.0.90.0230.03217.14
7.0.80.0120.02917.13
7.0.70.0140.02717.22
7.0.60.0150.04217.05
7.0.50.0150.02617.43
7.0.40.0190.04417.31
7.0.30.0160.03417.20
7.0.20.0140.03317.30
7.0.10.0170.04317.30
7.0.00.0210.03217.31
5.6.300.0180.05720.73
5.6.290.0170.05920.57
5.6.280.0250.04820.77
5.6.270.0160.07320.72
5.6.260.0130.05620.93
5.6.250.0140.05020.65
5.6.240.0170.05020.72
5.6.230.0140.06820.63
5.6.220.0140.06720.61
5.6.210.0130.06320.63
5.6.200.0120.05820.88
5.6.190.0160.06620.87
5.6.180.0150.07420.98
5.6.170.0100.07120.98
5.6.160.0140.06720.91
5.6.150.0150.07220.91
5.6.140.0120.05521.04
5.6.130.0110.06921.00
5.6.120.0120.05020.88
5.6.110.0090.06720.81
5.6.100.0160.06520.89
5.6.90.0130.06721.01
5.6.80.0160.06620.35
5.6.70.0150.06420.24
5.6.60.0060.05320.32
5.6.50.0100.04520.32
5.6.40.0120.06620.28
5.6.30.0090.05220.23
5.6.20.0150.07120.23
5.6.10.0140.05620.24
5.6.00.0080.05820.20

preferences:
63.06 ms | 403 KiB | 5 Q