3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a; public function __construct($a) { $this->a = $a; } } class B extends A { public $b; public function __construct($b) { $this->b = $b; } public function callParentCtor($args) { call_user_func_array(array(parent, '__construct'), $args); } } $b = new B('b'); $b->callParentCtor([ 'a' ]); var_dump($b);

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.0070.01116.75
8.3.50.0040.01216.38
8.3.40.0060.00918.96
8.3.30.0070.00718.68
8.3.20.0070.00020.13
8.3.10.0080.00021.86
8.3.00.0080.00021.77
8.2.180.0120.00918.29
8.2.170.0140.00322.96
8.2.160.0110.00320.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00021.13
8.2.120.0080.00026.35
8.2.110.0090.00019.21
8.2.100.0110.00017.89
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0050.00317.93
8.2.50.0040.00818.09
8.2.40.0020.00522.32
8.2.30.0040.00419.39
8.2.20.0050.00317.85
8.2.10.0000.00817.98
8.2.00.0040.00417.93
8.1.280.0140.00025.92
8.1.270.0060.00322.02
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00321.24
8.1.230.0090.00317.42
8.1.220.0060.00317.74
8.1.210.0000.01018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0000.00818.63
8.1.160.0070.00020.69
8.1.150.0000.00720.55
8.1.140.0040.00419.58
8.1.130.0000.00717.66
8.1.120.0070.00017.49
8.1.110.0050.00317.35
8.1.100.0000.00717.37
8.1.90.0040.00417.51
8.1.80.0050.00317.45
8.1.70.0000.00717.48
8.1.60.0040.00417.63
8.1.50.0030.00617.41
8.1.40.0050.00217.52
8.1.30.0030.00617.66
8.1.20.0000.00817.66
8.1.10.0030.00517.55
8.1.00.0000.00817.40
8.0.300.0060.00318.77
8.0.290.0000.00816.88
8.0.280.0000.00718.35
8.0.270.0000.00717.18
8.0.260.0070.00017.32
8.0.250.0030.00317.01
8.0.240.0070.00017.02
8.0.230.0030.00316.91
8.0.220.0040.00416.98
8.0.210.0000.00816.98
8.0.200.0000.00716.85
8.0.190.0000.00917.02
8.0.180.0000.00817.06
8.0.170.0000.01016.98
8.0.160.0040.00417.01
8.0.150.0060.00316.89
8.0.140.0000.00716.86
8.0.130.0060.00013.45
8.0.120.0080.00016.94
8.0.110.0090.00016.96
8.0.100.0040.00416.75
8.0.90.0070.00016.98
8.0.80.0090.00916.93
8.0.70.0070.00016.80
8.0.60.0050.00216.75
8.0.50.0000.00817.00
8.0.30.0090.01017.04
8.0.20.0090.01017.41
8.0.10.0030.00317.06
8.0.00.0090.01316.77
7.4.330.0050.00016.84
7.4.320.0060.00016.63
7.4.300.0040.00416.64
7.4.290.0070.00416.63
7.4.280.0040.00416.56
7.4.270.0070.00016.48
7.4.260.0070.00016.56
7.4.250.0000.00716.50
7.4.240.0000.00716.50
7.4.230.0030.00316.36
7.4.220.0030.01516.42
7.4.210.0030.01216.53
7.4.200.0050.00216.48
7.4.160.0060.00916.73
7.4.150.0090.00917.40
7.4.140.0100.01317.86
7.4.130.0100.00916.49
7.4.120.0100.01016.54
7.4.110.0120.00916.48
7.4.100.0090.01016.74
7.4.90.0100.00716.41
7.4.80.0040.02019.39
7.4.70.0100.00616.69
7.4.60.0100.01316.51
7.4.50.0060.01216.49
7.4.40.0100.00616.62
7.4.30.0100.00716.55
7.4.10.0070.01114.86
7.4.00.0060.00815.11
7.3.330.0030.00313.23
7.3.320.0020.00313.20
7.3.310.0050.00216.27
7.3.300.0040.00416.38
7.3.290.0040.00416.38
7.3.280.0080.00916.34
7.3.270.0130.00917.40
7.3.260.0070.01116.31
7.3.250.0110.00816.42
7.3.240.0100.01116.40
7.3.230.0110.00616.39
7.3.210.0000.01816.43
7.3.200.0130.00419.39
7.3.190.0090.00816.59
7.3.180.0080.01516.44
7.3.170.0030.01216.49
7.3.160.0120.00316.51
7.3.130.0090.00914.83
7.3.120.0000.01614.67
7.3.110.0070.01114.83
7.3.100.0030.01014.83
7.3.90.0060.00914.77
7.3.80.0060.00314.87
7.3.70.0090.00314.61
7.3.60.0060.01214.59
7.3.50.0100.00714.98
7.3.40.0030.00714.66
7.3.30.0030.01014.86
7.3.20.0140.00316.79
7.3.10.0060.00616.85
7.3.00.0040.01116.84
7.2.330.0040.01316.43
7.2.320.0070.01016.45
7.2.310.0070.01016.33
7.2.300.0140.00916.74
7.2.290.0130.00316.86
7.2.260.0110.00615.25
7.2.250.0000.01915.04
7.2.240.0060.00614.89
7.2.230.0000.01615.28
7.2.220.0110.00715.18
7.2.210.0060.00814.82
7.2.200.0040.00815.07
7.2.190.0070.01315.04
7.2.180.0060.01314.84
7.2.170.0070.00414.98
7.2.160.0040.01114.79
7.2.150.0140.00417.08
7.2.140.0120.00017.04
7.2.130.0140.00016.92
7.2.120.0030.01416.63
7.2.110.0100.00016.82
7.2.100.0030.01516.68
7.2.90.0000.01516.73
7.2.80.0040.01116.80
7.2.70.0090.00616.90
7.2.60.0030.00916.96
7.2.50.0090.00316.76
7.2.40.0100.00617.10
7.2.30.0100.00316.62
7.2.20.0030.01416.95
7.2.10.0030.00916.86
7.2.00.0040.00918.03
7.1.330.0030.01315.91
7.1.320.0030.01415.76
7.1.310.0060.00915.74
7.1.300.0000.01315.80
7.1.290.0040.00715.75
7.1.280.0060.00315.84
7.1.270.0060.00915.81
7.1.260.0030.01315.59
7.1.250.0090.00015.69
7.1.240.0070.01115.73
7.1.230.0030.01215.55
7.1.220.0000.01215.91
7.1.210.0080.00815.78
7.1.200.0020.01115.80
7.1.190.0060.00315.86
7.1.180.0030.01415.91
7.1.170.0030.01315.90
7.1.160.0120.00315.89
7.1.150.0040.00816.02
7.1.140.0060.00615.69
7.1.130.0060.00915.62
7.1.120.0030.00715.56
7.1.110.0070.00715.69
7.1.100.0040.01216.85
7.1.90.0120.00315.70
7.1.80.0090.00615.54
7.1.70.0070.00416.46
7.1.60.0050.01317.68
7.1.50.0050.01316.14
7.1.40.0060.01015.85
7.1.30.0070.01015.62
7.1.20.0030.00615.84
7.1.10.0030.00715.71
7.1.00.0030.04519.15
7.0.330.0080.00415.36
7.0.320.0060.00315.41
7.0.310.0070.00715.46
7.0.300.0030.01315.45
7.0.290.0080.00415.51
7.0.280.0070.00315.17
7.0.270.0080.00415.31
7.0.260.0040.01115.38
7.0.250.0070.00715.58
7.0.240.0070.00715.36
7.0.230.0070.00715.43
7.0.220.0070.00315.32
7.0.210.0030.01015.38
7.0.200.0210.00614.90
7.0.190.0120.00315.43
7.0.180.0070.00715.47
7.0.170.0000.01815.30
7.0.160.0030.01415.46
7.0.150.0030.00915.13
7.0.140.0050.00315.27
7.0.130.0090.00615.21
7.0.120.0080.00415.26
7.0.110.0000.01115.36
7.0.100.0030.01015.46
7.0.90.0040.01215.22
7.0.80.0070.00715.50
7.0.70.0030.00715.31
7.0.60.0120.04218.51
7.0.50.0030.02716.59
7.0.40.0090.04416.85
7.0.30.0170.03416.93
7.0.20.0200.03616.88
7.0.10.0120.03516.67
7.0.00.0070.04916.80
5.6.400.0030.01014.48
5.6.390.0070.00714.53
5.6.380.0000.01014.36
5.6.370.0030.01014.70
5.6.360.0070.00414.31
5.6.350.0110.00414.70
5.6.340.0100.00714.46
5.6.330.0070.00714.34
5.6.320.0120.00314.18
5.6.310.0060.00914.42
5.6.300.0030.00814.33
5.6.290.0090.00614.18
5.6.280.0010.02417.55
5.6.270.0070.00414.50
5.6.260.0080.00414.53
5.6.250.0060.00914.66
5.6.240.0060.00614.45
5.6.230.0030.00614.66
5.6.220.0000.01414.18
5.6.210.0030.02517.40
5.6.200.0110.03316.39
5.6.190.0020.02917.35
5.6.180.0180.02617.57
5.6.170.0090.02617.61
5.6.160.0090.03217.48
5.6.150.0070.04516.34
5.6.140.0080.02316.16
5.6.130.0050.02716.27
5.6.120.0100.03617.73
5.6.110.0110.04117.67
5.6.100.0080.04317.77
5.6.90.0140.03717.61
5.6.80.0060.03817.38
5.6.70.0080.00814.15
5.6.60.0040.00814.13
5.6.50.0030.01314.37
5.6.40.0070.01114.43
5.6.30.0030.01214.36
5.6.20.0000.01314.34
5.6.10.0080.00614.20
5.6.00.0130.00314.38
5.5.380.0060.00914.21
5.5.370.0030.00914.28
5.5.360.0000.01414.29
5.5.350.0100.02117.36
5.5.340.0100.02316.12
5.5.330.0070.02317.52
5.5.320.0150.04317.40
5.5.310.0220.03717.37
5.5.300.0050.04216.00
5.5.290.0050.04916.20
5.5.280.0080.03817.73
5.5.270.0100.03717.37
5.5.260.0100.04217.58
5.5.250.0070.04517.59
5.5.240.0150.03517.24
5.5.230.0000.01213.91
5.5.220.0060.00614.27
5.5.210.0040.01414.17
5.5.200.0070.00714.52
5.5.190.0100.00314.42
5.5.180.0050.00914.21
5.5.170.0080.00814.55
5.5.160.0070.01114.15
5.5.150.0040.01114.11
5.5.140.0070.01014.47
5.5.130.0000.01514.46
5.5.120.0030.01014.34
5.5.110.0030.01014.12
5.5.100.0040.00413.95
5.5.90.0040.01114.36
5.5.80.0070.00614.42
5.5.70.0000.01714.43
5.5.60.0040.01114.37
5.5.50.0100.00714.29
5.5.40.0070.01014.05
5.5.30.0090.00314.23
5.5.20.0070.00714.46
5.5.10.0130.00014.39
5.5.00.0030.00914.43

preferences:
51.53 ms | 400 KiB | 5 Q