3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { } } class Bar extends Foo { public function __construct($aa, $bb) { } } $bar = new Bar(); (function (Foo $foo) { $foo->__construct(); })($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.0190.00316.73
8.3.50.0100.00716.06
8.3.40.0070.00718.84
8.3.30.0040.01118.66
8.3.20.0050.00320.95
8.3.10.0080.00021.57
8.3.00.0040.00818.03
8.2.180.0060.01218.41
8.2.170.0060.01022.96
8.2.160.0110.00720.43
8.2.150.0050.00324.18
8.2.140.0130.00624.66
8.2.130.0050.00220.52
8.2.120.0030.00526.35
8.2.110.0030.00722.31
8.2.100.0070.01017.52
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0000.00817.91
8.2.50.0030.00618.10
8.2.40.0050.00322.27
8.2.30.0040.00419.26
8.2.20.0040.00418.06
8.2.10.0060.00318.01
8.2.00.0040.00418.04
8.1.280.0150.00625.92
8.1.270.0030.00623.89
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00023.84
8.1.230.0000.01122.16
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0030.00617.10
8.1.180.0030.00618.10
8.1.170.0070.00018.56
8.1.160.0040.00418.82
8.1.150.0000.00718.67
8.1.140.0060.00319.38
8.1.130.0030.00318.69
8.1.120.0040.00417.30
8.1.110.0000.00717.33
8.1.100.0080.00017.34
8.1.90.0080.00017.31
8.1.80.0070.00017.33
8.1.70.0070.00017.30
8.1.60.0030.00617.40
8.1.50.0040.00417.42
8.1.40.0070.00017.35
8.1.30.0020.00517.56
8.1.20.0080.00017.59
8.1.10.0050.00217.54
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.36
8.0.270.0040.00417.18
8.0.260.0030.00316.81
8.0.250.0000.00716.84
8.0.240.0050.00316.78
8.0.230.0030.00316.83
8.0.220.0070.00016.77
8.0.210.0040.00416.85
8.0.200.0070.00016.95
8.0.190.0000.00916.83
8.0.180.0080.00016.94
8.0.170.0070.00016.96
8.0.160.0000.00816.89
8.0.150.0070.00016.88
8.0.140.0000.00816.89
8.0.130.0000.00613.42
8.0.120.0070.00016.84
8.0.110.0040.00416.86
8.0.100.0040.00416.75
8.0.90.0040.00416.91
8.0.80.0080.00816.84
8.0.70.0000.00716.75
8.0.60.0020.00516.82
8.0.50.0000.00716.77
8.0.30.0110.01017.12
8.0.20.0100.01117.40
8.0.10.0040.00416.93
8.0.00.0100.00716.79
7.4.330.0050.00015.55
7.4.320.0030.00316.48
7.4.300.0040.00416.54
7.4.290.0140.00016.44
7.4.280.0040.00416.42
7.4.270.0070.00016.52
7.4.260.0030.00313.32
7.4.250.0030.00616.30
7.4.240.0000.00716.50
7.4.230.0000.00716.61
7.4.220.0040.01416.63
7.4.210.0060.01316.39
7.4.200.0000.00716.63
7.4.160.0070.01016.41
7.4.150.0150.00317.40
7.4.140.0130.00817.86
7.4.130.0200.00016.52
7.4.120.0110.00616.51
7.4.110.0030.01516.63
7.4.100.0100.00716.63
7.4.90.0070.01016.29
7.4.80.0130.01019.39
7.4.70.0090.00916.51
7.4.60.0060.01016.54
7.4.50.0050.00516.52
7.4.40.0060.00916.54
7.4.30.0070.01016.48
7.4.00.0070.01114.99
7.3.330.0050.00013.37
7.3.320.0000.00513.38
7.3.310.0030.00316.26
7.3.300.0060.00016.42
7.3.290.0070.01016.31
7.3.280.0080.00916.34
7.3.270.0080.00817.40
7.3.260.0110.00916.46
7.3.250.0130.00916.46
7.3.240.0090.01116.46
7.3.230.0060.01016.54
7.3.210.0110.00616.54
7.3.200.0120.00316.31
7.3.190.0110.01116.39
7.3.180.0030.01316.39
7.3.170.0060.01316.27
7.3.160.0100.00616.42
7.3.120.0060.01114.84
7.3.110.0050.01014.81
7.3.100.0030.01314.78
7.3.90.0080.00814.79
7.3.80.0030.01114.64
7.3.70.0060.00914.69
7.3.60.0070.00514.68
7.3.50.0050.00914.70
7.3.40.0080.00514.76
7.3.30.0060.00814.56
7.3.20.0020.00816.61
7.3.10.0050.00716.49
7.3.00.0080.00716.42
7.2.330.0070.01016.38
7.2.320.0150.01516.62
7.2.310.0100.00616.43
7.2.300.0090.01216.50
7.2.290.0110.00816.28
7.2.250.0120.00514.68
7.2.240.0090.01014.75
7.2.230.0050.01115.15
7.2.220.0080.00514.88
7.2.210.0050.00914.89
7.2.200.0070.00614.70
7.2.190.0080.00814.94
7.2.180.0060.00814.98
7.2.170.0080.00714.95
7.2.80.0070.01016.39
7.2.60.0000.01416.82
7.2.00.0030.00919.35
7.1.330.0040.01015.53
7.1.320.0050.00715.52
7.1.310.0050.00915.43
7.1.300.0060.00615.61
7.1.290.0060.01015.62
7.1.280.0030.00915.53
7.1.270.0050.00815.43
7.1.260.0050.00915.60
7.1.200.0070.00715.12
7.1.100.0040.00817.93
7.1.70.0000.00716.98
7.1.60.1830.01333.12
7.1.50.1470.01032.55
7.1.40.2330.01732.53
7.1.30.4070.00732.53
7.1.20.2100.02032.82
7.1.10.2970.01014.51
7.1.00.3130.01314.57
7.0.200.1730.00714.83
7.0.190.2070.00714.84
7.0.180.2530.01314.41
7.0.170.4170.01014.46
7.0.160.2970.02014.38
7.0.150.1530.01714.30
7.0.140.2830.01714.43
7.0.130.2700.01314.57
7.0.120.2570.01314.67
7.0.110.2500.01014.41
7.0.100.2730.00714.57
7.0.90.2000.01314.31
7.0.80.2070.01314.39
7.0.70.2230.01314.63
7.0.60.2630.01314.25
7.0.50.2170.01014.54
7.0.40.2430.01014.38
7.0.30.2630.00014.51
7.0.20.3270.01314.45
7.0.10.2870.01714.68
7.0.00.2830.01714.31

preferences:
49.73 ms | 401 KiB | 5 Q