3v4l.org

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

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.01216.25
8.3.50.0140.00016.40
8.3.40.0060.00918.71
8.3.30.0060.01018.59
8.3.20.0040.00420.21
8.3.10.0070.00023.48
8.3.00.0040.00423.71
8.2.180.0150.00625.92
8.2.170.0100.00318.96
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00420.47
8.2.120.0040.00426.35
8.2.110.0070.01420.25
8.2.100.0100.00517.48
8.2.90.0040.00417.50
8.2.80.0040.00418.36
8.2.70.0040.00417.63
8.2.60.0040.00417.49
8.2.50.0080.00018.22
8.2.40.0030.00620.54
8.2.30.0080.00020.82
8.2.20.0050.00217.81
8.2.10.0030.00417.81
8.2.00.0000.00717.86
8.1.280.0140.00325.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00723.92
8.1.230.0000.01120.83
8.1.220.0040.00418.36
8.1.210.0040.00418.77
8.1.200.0000.00817.00
8.1.190.0000.00817.40
8.1.180.0030.00518.10
8.1.170.0060.00318.52
8.1.160.0040.00418.77
8.1.150.0070.00018.49
8.1.140.0070.00019.11
8.1.130.0000.00818.99
8.1.120.0000.00717.23
8.1.110.0000.00817.23
8.1.100.0080.00017.32
8.1.90.0000.00817.33
8.1.80.0040.00417.38
8.1.70.0030.00317.23
8.1.60.0060.00617.55
8.1.50.0030.00617.42
8.1.40.0030.00617.42
8.1.30.0040.00417.63
8.1.20.0030.00517.44
8.1.10.0120.00017.50
8.1.00.0000.00817.46
8.0.300.0060.00318.77
8.0.290.0030.00616.63
8.0.280.0070.00018.45
8.0.270.0070.00017.20
8.0.260.0000.00718.36
8.0.250.0030.00316.77
8.0.240.0040.00416.87
8.0.230.0080.00016.75
8.0.220.0050.00216.78
8.0.210.0050.00316.66
8.0.200.0030.00316.76
8.0.190.0110.00016.72
8.0.180.0070.00016.68
8.0.170.0080.00016.80
8.0.160.0000.00716.76
8.0.150.0000.00816.67
8.0.140.0060.00316.76
8.0.130.0030.00513.09
8.0.120.0000.00816.75
8.0.110.0040.00416.64
8.0.100.0050.00316.71
8.0.90.0080.00016.64
8.0.80.0070.01016.76
8.0.70.0050.00216.71
8.0.60.0000.00816.75
8.0.50.0000.00716.56
8.0.30.0070.00916.86
8.0.20.0090.01217.40
8.0.10.0030.00316.72
8.0.00.0040.01416.57
7.4.330.0050.00015.55
7.4.320.0060.00016.50
7.4.300.0000.00616.48
7.4.290.0030.00316.44
7.4.280.0000.00816.51
7.4.270.0070.00016.47
7.4.260.0070.00016.56
7.4.250.0070.00016.31
7.4.240.0000.00716.30
7.4.230.0070.00016.46
7.4.220.0140.00316.45
7.4.210.0060.01316.58
7.4.200.0000.00716.42
7.4.160.0050.01116.35
7.4.150.0060.01217.40
7.4.140.0110.00917.86
7.4.130.0060.01116.33
7.4.120.0150.00716.42
7.4.110.0120.00816.42
7.4.100.0090.01316.32
7.4.90.0130.00316.59
7.4.80.0000.01619.39
7.4.70.0080.00816.26
7.4.60.0090.00616.59
7.4.50.0060.00916.21
7.4.40.0120.00416.54
7.4.30.0030.01316.51
7.4.00.0090.00614.83
7.3.330.0080.00013.22
7.3.320.0000.00513.06
7.3.310.0000.00716.25
7.3.300.0000.00716.09
7.3.290.0080.00616.26
7.3.280.0110.00716.25
7.3.270.0130.00317.40
7.3.260.0150.01816.29
7.3.250.0090.00716.23
7.3.240.0110.00616.27
7.3.230.0060.01216.50
7.3.210.0060.01216.31
7.3.200.0100.01116.53
7.3.190.0100.00716.29
7.3.180.0070.01016.56
7.3.170.0140.00316.45
7.3.160.0120.00316.46
7.2.330.0110.00916.30
7.2.320.0090.00616.51
7.2.310.0090.01216.34
7.2.300.0070.01116.21
7.2.290.0070.01116.41
7.2.60.0100.00616.61
7.1.200.0060.00915.79
7.1.120.0160.01916.75
7.1.110.0630.01815.85
7.1.100.0640.00615.91
7.1.90.1020.00715.63
7.1.80.0970.00315.77
7.1.70.1060.01315.25
7.1.60.0990.01333.27
7.1.50.1060.00732.90
7.1.40.0980.01032.68
7.1.30.1590.02032.53
7.1.20.1100.01032.69
7.1.10.1150.00614.64
7.1.00.0770.01014.80
7.0.250.0080.01615.41
7.0.240.0870.01415.72
7.0.230.1080.00715.67
7.0.220.1010.01115.55
7.0.210.0790.01314.61
7.0.200.1820.01314.81
7.0.190.1140.00714.87
7.0.180.0810.01614.40
7.0.170.1140.00714.26
7.0.160.1400.00714.36
7.0.150.0760.01314.21
7.0.140.0800.01014.57
7.0.130.0810.01414.65
7.0.120.0540.01514.42
7.0.110.1400.01314.57
7.0.100.1570.01014.34
7.0.90.0870.01014.24
7.0.80.0800.01014.36
7.0.70.0930.01014.29
7.0.60.0880.01314.22
7.0.50.1130.01314.32
7.0.40.0770.00614.45
7.0.30.0600.01314.61
7.0.20.0870.01314.47
7.0.10.0800.00314.38
7.0.00.0670.01314.41

preferences:
59.14 ms | 400 KiB | 5 Q