3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AdminPage { public function __construct($args = []) { $action = isset($args['is_network']) && $args['is_network'] ? 'network_admin_menu' : 'admin_menu'; echo "using $action for " . __CLASS__ . "\r\n"; } } class AdminNetworkPage extends AdminPage { public function __construct($args = []) { $args['is_network'] = true; parent::__construct($args); } } new AdminPage(); new AdminNetworkPage();

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.0160.00618.33
8.3.50.0070.00717.97
8.3.40.0000.01518.82
8.3.30.0140.00718.85
8.3.20.0080.00020.24
8.3.10.0000.00822.10
8.3.00.0020.00523.56
8.2.180.0110.01518.41
8.2.170.0140.00022.96
8.2.160.0090.00622.25
8.2.150.0120.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00519.09
8.2.120.0000.00726.35
8.2.110.0090.00020.64
8.2.100.0100.00017.91
8.2.90.0080.00019.30
8.2.80.0000.00817.97
8.2.70.0040.00417.61
8.2.60.0060.00318.05
8.2.50.0040.00418.16
8.2.40.0050.00320.41
8.2.30.0040.00421.16
8.2.20.0050.00318.04
8.2.10.0080.00018.00
8.2.00.0070.00018.10
8.1.280.0060.00925.92
8.1.270.0000.00820.48
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0030.00722.16
8.1.230.0080.00317.83
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0060.00318.59
8.1.160.0000.00718.95
8.1.150.0000.00720.02
8.1.140.0040.00417.70
8.1.130.0000.00718.89
8.1.120.0040.00417.44
8.1.110.0000.00817.44
8.1.100.0040.00417.48
8.1.90.0000.00817.40
8.1.80.0070.00017.46
8.1.70.0030.00717.50
8.1.60.0000.00817.52
8.1.50.0040.00417.50
8.1.40.0050.00317.40
8.1.30.0050.00317.65
8.1.20.0080.00017.69
8.1.10.0040.00417.41
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0000.00816.61
8.0.280.0000.00718.35
8.0.270.0080.00017.11
8.0.260.0050.00218.36
8.0.250.0030.00616.95
8.0.240.0000.00716.97
8.0.230.0030.00716.94
8.0.220.0070.00016.83
8.0.210.0000.00716.91
8.0.200.0030.00316.99
8.0.190.0040.00416.95
8.0.180.0030.00616.91
8.0.170.0040.00416.81
8.0.160.0040.00416.81
8.0.150.0030.00316.83
8.0.140.0080.00016.91
8.0.130.0050.00013.28
8.0.120.0040.00416.91
8.0.110.0080.00016.82
8.0.100.0000.00816.88
8.0.90.0050.00316.76
8.0.80.0030.01216.91
8.0.70.0040.00416.79
8.0.60.0070.00017.01
8.0.50.0080.00016.72
8.0.30.0080.01017.16
8.0.20.0110.00917.40
8.0.10.0020.00517.05
8.0.00.0110.00616.63
7.4.330.0030.00315.55
7.4.320.0070.00016.57
7.4.300.0030.00516.61
7.4.290.0000.00716.46
7.4.280.0000.00816.51
7.4.270.0030.00316.50
7.4.260.0030.00316.50
7.4.250.0050.00316.56
7.4.240.0030.00316.43
7.4.230.0000.00716.63
7.4.220.0090.00916.38
7.4.210.0000.01416.62
7.4.200.0030.00416.39
7.4.160.0030.01216.39
7.4.150.0110.00617.40
7.4.140.0080.01117.86
7.4.130.0070.01716.38
7.4.120.0100.01116.49
7.4.110.0060.01216.46
7.4.100.0160.00716.48
7.4.90.0120.00616.54
7.4.80.0140.00719.39
7.4.70.0030.01416.67
7.4.60.0060.01016.45
7.4.50.0030.01316.48
7.4.40.0140.00316.48
7.4.30.0110.01116.52
7.4.00.0030.00915.16
7.3.330.0030.00313.23
7.3.320.0000.00513.15
7.3.310.0030.00316.41
7.3.300.0070.00016.39
7.3.290.0080.00716.36
7.3.280.0090.00816.36
7.3.270.0100.00717.40
7.3.260.0090.00916.44
7.3.250.0100.01016.56
7.3.240.0080.01216.44
7.3.230.0070.01016.64
7.3.210.0040.01416.38
7.3.200.0070.01116.49
7.3.190.0090.00916.55
7.3.180.0100.00616.50
7.3.170.0040.01116.54
7.3.160.0120.00316.40
7.3.10.0100.00716.29
7.3.00.0040.00716.30
7.2.330.0060.01216.65
7.2.320.0100.00716.69
7.2.310.0120.01516.66
7.2.300.0120.00416.63
7.2.290.0100.00516.68
7.2.130.0040.00716.49
7.2.120.0060.00316.19
7.2.110.0110.00416.34
7.2.100.0050.00916.07
7.2.90.0170.00416.21
7.2.80.0070.00316.20
7.2.70.0040.00816.56
7.2.60.0110.00216.80
7.2.50.0130.00316.57
7.2.40.0190.00316.52
7.2.30.0130.00016.54
7.2.20.0080.00816.77
7.2.10.0150.00816.61
7.2.00.0000.01416.54
7.1.250.0040.00815.41
7.1.200.0040.01115.68
7.1.100.6300.01316.37
7.1.90.4830.01316.22
7.1.80.0340.01015.98
7.1.70.0100.01215.32
7.1.60.0230.02033.43
7.1.50.0220.01332.95
7.1.40.0270.01532.60
7.1.30.1480.01032.66
7.1.20.6960.02332.68
7.1.10.0480.01514.66
7.1.00.0130.01014.87
7.0.240.3580.00616.07
7.0.230.4690.01616.09
7.0.220.0160.01015.95
7.0.210.0210.00614.59
7.0.200.0120.00915.13
7.0.190.0110.01414.83
7.0.180.0090.00914.56
7.0.170.0780.01314.35
7.0.160.3310.00714.27
7.0.150.0150.00914.48
7.0.140.0370.01714.67
7.0.130.0820.01014.76
7.0.120.1250.01314.63
7.0.110.0450.01414.55
7.0.100.4030.00714.41
7.0.90.0100.00714.38
7.0.80.0530.00414.62
7.0.70.3910.01014.75
7.0.60.4500.01014.45
7.0.50.0070.01116.25
7.0.40.0030.01516.39
7.0.30.0000.01816.24
7.0.20.0060.00816.46
7.0.10.0070.00716.33
7.0.00.0000.01516.18

preferences:
74.86 ms | 400 KiB | 5 Q