3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Test { public function __construct() { echo "Hello "; } } } namespace { class Foo { public function __construct() { echo "World"; } } } namespace Bob { use Foo as Bar; new Bar\Test; new Bar; }

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.0060.00916.50
8.3.50.0070.00716.36
8.3.40.0160.00618.58
8.3.30.0060.00918.50
8.3.20.0070.00020.21
8.3.10.0040.00423.66
8.3.00.0080.00023.70
8.2.180.0110.00418.16
8.2.170.0130.00718.79
8.2.160.0110.00319.34
8.2.150.0080.00024.18
8.2.140.0100.00724.66
8.2.130.0040.00420.56
8.2.120.0040.00426.35
8.2.110.0100.00019.37
8.2.100.0130.00317.74
8.2.90.0060.00617.78
8.2.80.0060.00317.97
8.2.70.0050.00317.80
8.2.60.0040.00417.97
8.2.50.0040.00418.10
8.2.40.0040.00422.38
8.2.30.0040.00419.00
8.2.20.0040.00417.87
8.2.10.0000.00717.81
8.2.00.0000.00717.91
8.1.280.0030.01325.92
8.1.270.0040.00422.05
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00820.62
8.1.230.0040.00818.97
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0000.00817.23
8.1.190.0080.00017.09
8.1.180.0000.00818.10
8.1.170.0060.00318.46
8.1.160.0040.00418.77
8.1.150.0070.00020.00
8.1.140.0050.00218.98
8.1.130.0030.00318.82
8.1.120.0000.00717.33
8.1.110.0000.00817.27
8.1.100.0040.00417.30
8.1.90.0030.00317.16
8.1.80.0000.00717.32
8.1.70.0070.00017.32
8.1.60.0040.00717.52
8.1.50.0030.00517.41
8.1.40.0000.00817.44
8.1.30.0040.00417.48
8.1.20.0000.00717.52
8.1.10.0060.00617.54
8.1.00.0040.00417.39
8.0.300.0040.00421.90
8.0.290.0040.00416.59
8.0.280.0030.00318.45
8.0.270.0000.00717.26
8.0.260.0030.00318.38
8.0.250.0000.00716.92
8.0.240.0000.00816.87
8.0.230.0040.00416.71
8.0.220.0030.00516.67
8.0.210.0030.00316.81
8.0.200.0000.00616.76
8.0.190.0080.00316.79
8.0.180.0030.00316.79
8.0.170.0000.00716.77
8.0.160.0050.00216.84
8.0.150.0030.00616.59
8.0.140.0080.00016.75
8.0.130.0030.00313.22
8.0.120.0070.00016.65
8.0.110.0000.00716.75
8.0.100.0000.00716.75
8.0.90.0000.00816.84
8.0.80.0070.01016.66
8.0.70.0000.00816.73
8.0.60.0050.00316.67
8.0.50.0000.00716.66
8.0.30.0120.00617.01
8.0.20.0070.01317.40
8.0.10.0040.00416.78
8.0.00.0070.01016.94
7.4.330.0000.00515.55
7.4.320.0000.00616.23
7.4.300.0070.00016.37
7.4.290.0040.00416.36
7.4.280.0030.00616.53
7.4.270.0050.00216.54
7.4.260.0000.00716.44
7.4.250.0070.00016.30
7.4.240.0040.00416.50
7.4.230.0050.00316.33
7.4.220.0070.01116.52
7.4.210.0040.01016.38
7.4.200.0030.00316.58
7.4.160.0070.00716.38
7.4.150.0000.01617.40
7.4.140.0140.00817.86
7.4.130.0100.00716.36
7.4.120.0110.01116.50
7.4.110.0100.00616.46
7.4.100.0100.01316.48
7.4.90.0100.00616.38
7.4.80.0080.00819.39
7.4.70.0070.01016.43
7.4.60.0090.00916.43
7.4.50.0040.00716.45
7.4.40.0060.01316.41
7.4.30.0080.00816.45
7.4.00.0030.01014.64
7.3.330.0030.00513.08
7.3.320.0060.00013.25
7.3.310.0070.00016.20
7.3.300.0030.00316.21
7.3.290.0050.01116.22
7.3.280.0060.01016.21
7.3.270.0060.01217.40
7.3.260.0080.00916.36
7.3.250.0100.00616.31
7.3.240.0110.00716.36
7.3.230.0150.00616.50
7.3.210.0140.00316.43
7.3.200.0080.00916.41
7.3.190.0100.01016.32
7.3.180.0060.01316.14
7.3.170.0030.01316.45
7.3.160.0030.01216.42
7.3.120.0090.00914.79
7.3.110.0090.00614.74
7.3.100.0070.00714.67
7.3.90.0070.00714.76
7.3.80.0100.00614.38
7.3.70.0030.01314.70
7.3.60.0120.00314.64
7.3.50.0090.00914.71
7.3.40.0060.00614.50
7.3.30.0070.01014.82
7.3.20.0000.01416.20
7.3.10.0050.01116.54
7.3.00.0090.00516.47
7.2.330.0130.00616.64
7.2.320.0100.00716.65
7.2.310.0120.00616.54
7.2.300.0070.01116.65
7.2.290.0030.01316.66
7.2.240.0090.00615.05
7.2.230.0090.00614.89
7.2.220.0060.00914.85
7.2.210.0080.00315.09
7.2.200.0030.01014.68
7.2.190.0070.00714.84
7.2.180.0050.00514.76
7.2.170.0130.00314.91
7.2.160.0120.00414.92
7.2.150.0110.00016.72
7.2.140.0030.01216.79
7.2.130.0110.00316.63
7.2.120.0020.01416.68
7.2.110.0030.01316.67
7.2.100.0050.01316.51
7.2.90.0060.00816.86
7.2.80.0040.00716.80
7.2.70.0030.01016.86
7.2.60.0050.00816.88
7.2.50.0020.01016.69
7.2.40.0050.00716.93
7.2.30.0070.00916.80
7.2.20.0110.00316.77
7.2.10.0020.01016.70
7.2.00.0050.00716.88
7.1.330.0100.00615.33
7.1.320.0000.01015.65
7.1.310.0100.00315.72
7.1.300.0060.00915.40
7.1.290.0040.01115.64
7.1.280.0070.00415.53
7.1.270.0060.00915.47
7.1.260.0060.00615.49
7.1.250.0090.00615.38
7.1.200.0090.00315.50
7.1.120.0610.01316.73
7.1.110.0320.00316.02
7.1.100.0280.00915.91
7.1.90.0270.00316.02
7.1.80.0520.00715.89
7.1.70.0420.01015.07
7.1.60.0460.00933.11
7.1.50.0420.01332.74
7.1.40.0540.02032.39
7.1.30.0610.01332.67
7.1.20.0770.02132.64
7.1.10.0410.01314.65
7.1.00.0300.00714.43
7.0.250.0340.00915.75
7.0.240.0270.01015.83
7.0.230.0400.00915.78
7.0.220.0350.01115.68
7.0.210.0360.01314.80
7.0.200.0470.00714.79
7.0.190.0410.01314.71
7.0.180.0430.01014.29
7.0.170.0520.01014.39
7.0.160.0490.01514.27
7.0.150.0660.01314.52
7.0.140.0820.01314.46
7.0.130.0270.01014.61
7.0.120.0250.01114.48
7.0.110.0240.01014.54
7.0.100.0350.00014.38
7.0.90.0430.01714.52
7.0.80.0300.01214.49
7.0.70.0340.00714.43
7.0.60.0520.01314.14
7.0.50.0340.00414.36
7.0.40.0620.00714.47
7.0.30.0340.00614.49
7.0.20.0540.01214.50
7.0.10.0350.01014.45
7.0.00.0540.01314.61

preferences:
46.68 ms | 400 KiB | 5 Q