3v4l.org

run code in 500+ PHP versions simultaneously
<?php class DatabaseConnection { } class Query { public function __construct(DatabaseConnection $connection, $options) { } } class SelectQuery extends Query { public function __construct($table, $alias = NULL, DatabaseConnection $connection = NULL, $options = array()) { parent::__construct($connection, $options); } } $db = new DatabaseConnection(); $select = new SelectQuery('table', NULL, NULL, array());

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.5.60.0130.00516.99
8.5.30.0140.00419.38
8.5.20.0110.00620.32
8.5.10.0130.00617.06
8.5.00.0150.00720.30
8.4.180.0120.01022.03
8.4.170.0110.01120.63
8.4.160.0050.00623.84
8.4.150.0080.00516.86
8.4.140.0120.00917.88
8.4.130.0120.00818.67
8.4.120.0110.00924.25
8.4.110.0130.00918.85
8.4.100.0130.00718.02
8.4.90.0080.01120.76
8.4.80.0100.01018.83
8.4.70.0070.00218.76
8.4.60.0130.00718.91
8.4.50.0090.01118.99
8.4.40.0070.01318.10
8.4.30.0090.00918.64
8.4.20.0090.00017.84
8.4.10.0000.00920.54
8.3.300.0100.00920.84
8.3.290.0100.01020.63
8.3.280.0100.00918.34
8.3.270.0150.01016.55
8.3.260.0120.00916.89
8.3.250.0120.00718.81
8.3.240.0110.00817.09
8.3.230.0140.00616.51
8.3.220.0080.00818.92
8.3.210.0120.00916.84
8.3.200.0050.00516.76
8.3.190.0030.00518.86
8.3.180.0100.00818.72
8.3.170.0070.01118.54
8.3.160.0060.01218.72
8.3.150.0040.01518.88
8.3.140.0110.00420.72
8.3.130.0000.00818.57
8.3.120.0090.00020.53
8.3.110.0060.01020.94
8.3.100.0060.00016.64
8.3.90.0040.00418.54
8.3.80.0090.00019.36
8.3.70.0120.00616.58
8.3.60.0130.00718.30
8.3.50.0160.00523.74
8.3.40.0100.00721.74
8.3.30.0090.00618.61
8.3.20.0000.00724.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.300.0100.01022.11
8.2.290.0070.00420.60
8.2.280.0090.00318.40
8.2.270.0200.00016.79
8.2.260.0030.00617.27
8.2.250.0050.00316.63
8.2.240.0040.00418.69
8.2.230.0040.00422.58
8.2.220.0080.00024.06
8.2.210.0110.00426.77
8.2.200.0030.00616.63
8.2.190.0110.00716.63
8.2.180.0060.00925.92
8.2.170.0190.00019.09
8.2.160.0090.00622.96
8.2.150.0030.00525.66
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0070.00026.35
8.2.110.0100.00020.93
8.2.100.0050.00517.78
8.2.90.0000.00817.91
8.2.80.0030.00618.03
8.2.70.0030.00617.38
8.2.60.0000.00817.38
8.2.50.0000.00818.05
8.2.40.0040.00418.03
8.2.30.0040.00418.01
8.2.20.0000.00718.05
8.2.10.0000.00720.97
8.2.00.0000.00719.25
8.1.340.0100.01217.84
8.1.330.0140.00421.89
8.1.320.0120.00717.96
8.1.310.0060.01316.80
8.1.300.0100.01019.63
8.1.290.0060.00318.88
8.1.280.0120.00625.92
8.1.270.0000.00823.99
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0040.00722.66
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00817.35
8.1.190.0000.00917.11
8.1.180.0080.00018.10
8.1.170.0030.00618.63
8.1.160.0000.00718.80
8.1.150.0080.00418.91
8.1.140.0000.00718.84
8.1.130.0030.00320.03
8.1.120.0030.00317.34
8.1.110.0030.00617.31
8.1.100.0040.00417.32
8.1.90.0000.00717.42
8.1.80.0000.00717.25
8.1.70.0070.00017.27
8.1.60.0040.00417.64
8.1.50.0040.00417.42
8.1.40.0030.00617.57
8.1.30.0000.00917.58
8.1.20.0030.00617.65
8.1.10.0030.00617.57
8.1.00.0080.00417.41
8.0.300.0080.00019.82
8.0.290.0070.00016.75
8.0.280.0070.00020.20
8.0.270.0000.00818.02
8.0.260.0030.00320.17
8.0.250.0070.00016.90
8.0.240.0000.00716.85
8.0.230.0030.00316.93
8.0.220.0070.00016.90
8.0.210.0030.00316.92
8.0.200.0030.00317.01
8.0.190.0080.00017.02
8.0.180.0000.00716.97
8.0.170.0060.00316.84
8.0.160.0070.00016.84
8.0.150.0030.00616.82
8.0.140.0000.00816.95
8.0.130.0000.00613.36
8.0.120.0050.00316.90
8.0.110.0000.00816.79
8.0.100.0000.01016.92
8.0.90.0040.00416.98
8.0.80.0100.00816.92
8.0.70.0080.00016.80
8.0.60.0020.00516.97
8.0.50.0050.00316.95
8.0.30.0080.00817.37
8.0.20.0130.00617.02
8.0.10.0000.00816.92
8.0.00.0160.00316.78
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0000.00616.38
7.4.290.0000.00816.48
7.4.280.0000.00816.61
7.4.270.0040.00416.43
7.4.260.0060.00013.31
7.4.250.0040.00416.59
7.4.240.0070.00016.63
7.4.230.0040.00416.69
7.4.220.0050.00216.66
7.4.210.0090.00716.63
7.4.200.0070.00016.64
7.4.130.0040.01416.51
7.4.120.0060.01016.65
7.4.110.0110.00616.28
7.4.100.0080.00816.53
7.4.90.0060.01016.54
7.4.80.0140.00316.70
7.4.70.0140.00316.40
7.4.60.0100.00616.40
7.4.50.0120.00616.52
7.4.40.0100.00616.48
7.4.30.0210.00016.28
7.4.20.0030.01616.29
7.4.10.0130.00316.49
7.4.00.0100.01016.68
7.3.330.0070.00016.33
7.3.320.0000.00513.36
7.3.310.0030.00316.25
7.3.300.0050.00216.27
7.3.290.0060.00816.38
7.3.260.0120.00616.67
7.3.230.0090.00616.38
7.3.220.0100.00616.39
7.3.210.0070.01016.34
7.3.200.0060.01116.57
7.3.190.0050.01016.41
7.3.180.0030.01316.55
7.3.170.0130.00316.42
7.3.160.0060.01116.20
7.3.150.0120.01116.55
7.3.140.0110.00716.43
7.3.130.0000.01816.30
7.3.120.0060.01016.40
7.3.110.0150.00616.57
7.3.100.0040.01216.26
7.3.90.0130.00316.63
7.3.80.0090.00716.23
7.3.70.0100.00716.37
7.3.60.0120.00316.37
7.3.50.0080.00816.34
7.3.40.0060.00916.41
7.3.30.0130.00616.25
7.3.20.0030.01316.44
7.3.10.0130.00316.29
7.3.00.0100.00716.29
7.2.340.0170.00016.55
7.2.330.0070.01016.41
7.2.320.0120.00316.49
7.2.310.0060.01016.32
7.2.300.0090.00616.49
7.2.290.0110.00616.77
7.2.280.0060.01216.48
7.2.270.0130.00616.30
7.2.260.0030.01316.29
7.2.250.0090.00916.47
7.2.240.0060.01516.55
7.2.230.0090.00616.70
7.2.220.0080.00816.34
7.2.210.0160.00016.50
7.2.200.0040.01216.50
7.2.190.0040.01216.49
7.2.180.0090.00616.38
7.2.170.0100.00616.46
7.2.160.0100.00716.46
7.2.150.0110.00716.56
7.2.140.0190.00016.46
7.2.130.0060.01016.63
7.2.120.0070.01016.42
7.2.110.0100.00716.52
7.2.100.0030.01316.46
7.2.90.0000.01716.49
7.2.80.0130.00316.44
7.2.70.0100.00716.57
7.2.60.0130.00616.42
7.2.50.0110.00616.59
7.2.40.0040.01416.42
7.2.30.0090.00916.56
7.2.20.0090.00916.51
7.2.10.0100.00716.39
7.2.00.0060.01216.45

preferences:
38.23 ms | 1575 KiB | 5 Q