3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class hello {} } namespace bar { class hello { public function __construct(){ $class = foo\hello::class; $foo = new $class(); } } } namespace { $hello = new \bar\hello(); }

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.0110.00716.63
8.3.50.0110.00416.40
8.3.40.0070.00718.63
8.3.30.0110.00318.69
8.3.20.0080.00020.26
8.3.10.0000.00823.65
8.3.00.0080.00019.68
8.2.180.0070.01016.63
8.2.170.0140.00322.96
8.2.160.0120.00319.04
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00019.21
8.2.120.0070.00026.35
8.2.110.0100.00022.25
8.2.100.0070.00417.78
8.2.90.0000.00819.01
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0050.00217.80
8.2.50.0000.00818.10
8.2.40.0040.00420.47
8.2.30.0040.00419.31
8.2.20.0040.00417.98
8.2.10.0040.00417.97
8.2.00.0030.00517.96
8.1.280.0120.01225.92
8.1.270.0000.00722.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00924.02
8.1.230.0040.00717.71
8.1.220.0050.00517.76
8.1.210.0060.00318.77
8.1.200.0030.00717.35
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0000.00719.04
8.1.150.0040.00718.86
8.1.140.0040.00419.51
8.1.130.0000.00718.82
8.1.120.0040.00417.40
8.1.110.0050.00317.38
8.1.100.0000.00917.38
8.1.90.0020.00517.35
8.1.80.0000.00717.38
8.1.70.0030.00317.43
8.1.60.0030.00717.62
8.1.50.0040.00417.51
8.1.40.0000.00717.48
8.1.30.0050.00217.65
8.1.20.0000.00717.65
8.1.10.0040.00417.52
8.1.00.0040.00417.46
8.0.300.0050.00318.77
8.0.290.0060.00316.75
8.0.280.0030.00318.38
8.0.270.0040.00417.18
8.0.260.0030.00516.71
8.0.250.0040.00416.95
8.0.240.0000.00816.81
8.0.230.0070.00016.96
8.0.220.0030.00316.82
8.0.210.0040.00416.89
8.0.200.0070.00016.98
8.0.190.0040.00416.88
8.0.180.0000.00716.96
8.0.170.0000.00716.89
8.0.160.0050.00216.77
8.0.150.0070.00016.71
8.0.140.0030.00316.89
8.0.130.0040.00413.31
8.0.120.0040.00416.82
8.0.110.0000.00716.74
8.0.100.0040.00416.70
8.0.90.0000.00716.99
8.0.80.0080.01116.91
8.0.70.0030.00416.94
8.0.60.0000.00716.81
8.0.50.0040.00416.74
8.0.30.0080.01317.13
8.0.20.0120.00917.40
8.0.10.0030.00617.05
8.0.00.0070.01016.76
7.4.330.0050.00015.55
7.4.320.0030.00316.53
7.4.300.0060.00016.55
7.4.290.0000.00716.40
7.4.280.0040.00416.59
7.4.270.0080.00016.52
7.4.260.0080.00016.49
7.4.250.0000.00716.31
7.4.240.0040.00416.59
7.4.230.0000.00716.66
7.4.220.0070.01116.62
7.4.210.0110.00316.49
7.4.200.0000.00716.59
7.4.160.0110.00516.43
7.4.150.0080.01517.40
7.4.140.0140.00717.86
7.4.130.0200.01316.44
7.4.120.0090.01116.50
7.4.110.0130.00316.52
7.4.100.0100.00716.41
7.4.90.0100.00916.47
7.4.80.0050.01519.39
7.4.70.0130.01016.39
7.4.60.0090.00916.54
7.4.50.0070.01016.56
7.4.40.0060.01016.50
7.4.30.0170.00016.47
7.4.00.0080.00915.13
7.3.330.0040.00413.48
7.3.320.0000.00513.48
7.3.310.0000.00716.52
7.3.300.0070.00016.43
7.3.290.0100.00516.42
7.3.280.0110.00616.41
7.3.270.0190.00317.40
7.3.260.0070.01016.59
7.3.250.0090.00816.54
7.3.240.0100.00616.44
7.3.230.0130.00316.37
7.3.210.0110.00516.57
7.3.200.0160.00716.37
7.3.190.0110.00516.37
7.3.180.0000.01616.46
7.3.170.0160.00016.25
7.3.160.0040.01316.49
7.3.120.0040.01514.83
7.3.110.0100.00714.84
7.3.100.0030.01214.70
7.3.90.0090.00014.89
7.3.80.0000.01614.52
7.3.70.0030.00714.91
7.3.60.0140.00014.63
7.3.50.0030.01014.97
7.3.40.0000.01414.59
7.3.30.0000.01514.44
7.3.20.0060.00916.68
7.3.10.0030.01016.63
7.3.00.0050.00816.56
7.2.330.0130.00316.38
7.2.320.0120.00616.57
7.2.310.0120.00916.51
7.2.300.0120.00616.38
7.2.290.0130.00316.41
7.2.250.0000.01314.71
7.2.240.0070.01315.07
7.2.230.0030.01214.60
7.2.220.0060.00614.83
7.2.210.0030.01014.95
7.2.200.0080.00614.94
7.2.190.0090.00914.95
7.2.180.0120.00314.83
7.2.170.0000.01014.99
7.2.130.0070.01116.85
7.2.120.0040.00816.76
7.2.110.0000.01416.64
7.2.100.0060.00916.87
7.2.90.0120.00316.84
7.2.80.0070.00716.92
7.2.70.0040.00716.88
7.2.60.0050.00816.71
7.2.50.0000.01116.88
7.2.40.0050.00516.60
7.2.30.0000.01216.91
7.2.20.0050.00516.89
7.2.10.0110.00016.80
7.2.00.0080.00518.10
7.1.330.0090.00615.88
7.1.320.0100.00715.84
7.1.310.0070.01015.79
7.1.300.0000.01315.58
7.1.290.0000.01215.80
7.1.280.0040.01115.77
7.1.270.0060.00915.69
7.1.260.0100.00015.34
7.1.250.0110.00315.77
7.1.240.0000.01215.73
7.1.230.0080.00415.72
7.1.220.0090.00615.64
7.1.210.0070.00715.75
7.1.200.0040.00715.81
7.1.190.0000.01415.50
7.1.180.0060.00615.46
7.1.170.0000.01115.32
7.1.160.0070.00315.83
7.1.150.0030.00715.55
7.1.140.0080.00315.68
7.1.130.0100.00015.72
7.1.120.0040.00415.59
7.1.110.0050.00515.70
7.1.100.0100.00316.94
7.1.90.0030.00615.45
7.1.80.0100.00315.84
7.1.70.0050.01216.50
7.1.60.0130.01225.06
7.1.50.0160.01025.05
7.1.40.0140.01325.02
7.1.30.0150.01125.00
7.1.20.0140.00925.09
7.1.10.0060.00915.91
7.1.00.0050.00816.07
7.0.330.0070.00715.34
7.0.320.0000.01015.25
7.0.310.0030.00715.48
7.0.300.0100.00315.36
7.0.290.0040.00815.41
7.0.280.0080.00315.40
7.0.270.0000.01115.30
7.0.260.0040.00415.42
7.0.250.0070.00315.12
7.0.240.0060.00315.06
7.0.230.0050.00515.21
7.0.220.0000.00915.32
7.0.210.0040.00715.25
7.0.200.0080.00715.86
7.0.190.0060.00916.00
7.0.180.0100.00615.66
7.0.170.0090.00315.88
7.0.160.0000.01415.84
7.0.150.0070.00815.68
7.0.140.0040.00915.85
7.0.130.0070.00715.90
7.0.120.0070.00715.98
7.0.110.0050.01215.75
7.0.100.0070.00715.83
7.0.90.0090.00615.71
7.0.80.0020.01215.87
7.0.70.0080.00515.74
7.0.60.0090.00815.59
7.0.50.0010.01215.84
7.0.40.0120.00514.87
7.0.30.0080.00914.93
7.0.20.0030.01214.89
7.0.10.0050.01214.85
7.0.00.0090.00714.73
5.6.380.0000.01114.03

preferences:
41.02 ms | 401 KiB | 5 Q