3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct($id) { var_dump( $id ); } } class Bar extends Foo { public function __construct($id) { call_user_func_array(array('parent', __FUNCTION__), func_get_args()); call_user_func_array(array($this, array('parent::' . __FUNCTION__)), func_get_args()); } } new Bar(1);

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.00316.63
8.3.50.0100.00821.96
8.3.40.0040.01118.96
8.3.30.0120.00319.08
8.3.20.0000.00820.13
8.3.10.0080.00021.95
8.3.00.0040.00419.66
8.2.180.0040.01118.29
8.2.170.0140.00422.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00520.78
8.2.110.0030.00622.20
8.2.100.0080.00417.91
8.2.90.0060.00319.40
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0070.00018.04
8.2.20.0070.00017.66
8.2.10.0030.00518.17
8.2.00.0040.00417.66
8.1.280.0130.00325.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0100.00028.09
8.1.240.0040.00423.70
8.1.230.0040.00819.02
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.40
8.1.180.0040.00418.10
8.1.170.0050.00318.39
8.1.160.0040.00421.97
8.1.150.0040.00418.85
8.1.140.0050.00317.33
8.1.130.0040.00417.82
8.1.120.0050.00317.34
8.1.110.0000.00817.35
8.1.100.0040.00417.31
8.1.90.0000.00717.37
8.1.80.0040.00417.30
8.1.70.0030.00317.40
8.1.60.0060.00317.43
8.1.50.0000.00817.45
8.1.40.0040.00417.34
8.1.30.0000.00817.60
8.1.20.0040.00417.61
8.1.10.0040.00417.52
8.1.00.0000.00817.30
8.0.300.0050.00218.77
8.0.290.0000.00817.16
8.0.280.0000.00818.48
8.0.270.0000.00717.13
8.0.260.0000.00617.32
8.0.250.0030.00317.00
8.0.240.0080.00016.91
8.0.230.0000.00717.01
8.0.220.0070.00016.91
8.0.210.0050.00216.83
8.0.200.0050.00217.03
8.0.190.0040.00717.03
8.0.180.0080.00016.98
8.0.170.0080.00016.90
8.0.160.0000.00716.86
8.0.150.0000.00816.89
8.0.140.0040.00416.79
8.0.130.0030.00313.38
8.0.120.0040.00416.92
8.0.110.0050.00216.91
8.0.100.0040.00416.93
8.0.90.0060.00317.02
8.0.80.0060.01016.87
8.0.70.0000.00816.84
8.0.60.0070.00016.82
8.0.50.0000.00816.82
8.0.30.0110.00817.14
8.0.20.0120.00817.40
8.0.10.0000.00717.07
8.0.00.0130.00516.89
7.4.330.0030.00315.26
7.4.320.0070.00016.63
7.4.300.0000.00816.64
7.4.290.0070.00016.53
7.4.280.0030.00516.39
7.4.270.0060.00016.54
7.4.260.0030.00316.48
7.4.250.0070.00016.52
7.4.240.0070.00016.46
7.4.230.0000.00616.40
7.4.220.0000.01616.47
7.4.210.0040.01816.63
7.4.200.0070.00016.65
7.4.160.0090.00616.37
7.4.150.0060.01117.40
7.4.140.0080.00817.86
7.4.130.0110.00516.79
7.4.120.0160.00716.40
7.4.110.0150.00916.48
7.4.100.0100.00716.80
7.4.90.0100.00616.57
7.4.80.0090.00919.39
7.4.70.0090.00916.62
7.4.60.0100.01316.51
7.4.50.0030.00516.39
7.4.40.0030.01316.39
7.4.30.0090.00916.51
7.4.00.0030.00915.12
7.3.330.0000.00513.43
7.3.320.0050.00013.18
7.3.310.0030.00316.33
7.3.300.0000.00716.23
7.3.290.0030.01316.35
7.3.280.0100.00916.30
7.3.270.0040.01417.40
7.3.260.0050.01316.70
7.3.250.0120.00816.29
7.3.240.0090.01516.41
7.3.230.0130.00316.39
7.3.210.0060.01016.29
7.3.200.0100.00719.39
7.3.190.0130.00716.36
7.3.180.0080.00816.63
7.3.170.0070.01016.35
7.3.160.0030.01916.50
7.2.330.0000.01916.79
7.2.320.0090.01416.43
7.2.310.0120.00916.46
7.2.300.0130.00916.63
7.2.290.0070.01716.64
7.2.00.0090.00319.19
7.1.200.0070.00715.60
7.1.100.0070.01118.03
7.1.70.0070.00317.15
7.1.60.0100.01419.57
7.1.50.0060.01316.77
7.1.00.0070.07322.40
7.0.200.0210.00614.84
7.0.140.0000.07721.95
7.0.60.0130.03720.04
7.0.50.0030.07017.75
7.0.40.0100.08020.23
7.0.30.0300.04020.25
7.0.20.0300.06720.25
7.0.10.0130.08020.12
7.0.00.0030.09020.22
5.6.280.0000.07721.08
5.6.210.0000.05720.65
5.6.200.0070.07018.20
5.6.190.0070.04020.41
5.6.180.0070.05020.39
5.6.170.0170.07720.45
5.6.160.0100.07720.50
5.6.150.0100.07718.19
5.6.140.0100.08018.23
5.6.130.0070.08318.18
5.6.120.0130.08321.13
5.6.110.0130.08720.96
5.6.100.0100.08021.14
5.6.90.0130.07320.87
5.6.80.0000.04020.26
5.5.350.3970.03720.33
5.5.340.0130.07018.04
5.5.330.0000.05020.19
5.5.320.0330.06320.31
5.5.310.0170.05720.27
5.5.300.0100.07017.95
5.5.290.0070.04317.98
5.5.280.0130.08020.90
5.5.270.0130.08320.93
5.5.260.0000.06720.76
5.5.250.0030.06320.57
5.5.240.0230.07020.26
5.4.450.0230.06719.70
5.4.440.0800.06719.16
5.4.430.0100.05719.46
5.4.420.0000.06719.51
5.4.410.0070.06718.85
5.4.400.0130.04718.87
5.4.390.0100.05018.63
5.4.380.0170.05718.77
5.4.370.0100.03718.53
5.4.360.0030.04018.68
5.4.350.0100.04018.51
5.4.340.0100.04318.64
5.4.320.0070.04718.58
5.4.310.0030.05718.78
5.4.300.0130.03318.68
5.4.290.0100.03718.67
5.4.280.0070.04318.69
5.4.270.0130.03718.67
5.4.260.0100.03318.67
5.4.250.0030.04318.39
5.4.240.0030.04318.50
5.4.230.0130.03318.47
5.4.220.0030.04718.41
5.4.210.0070.04018.48
5.4.200.0070.03716.70
5.4.190.0000.04318.47
5.4.180.0070.03718.68
5.4.170.0070.04018.44
5.4.160.0100.03318.66
5.4.150.0000.04318.51
5.4.140.0000.04316.38
5.4.130.0000.04016.12
5.4.120.0070.03716.18
5.4.110.0070.03316.11
5.4.100.0000.05016.31
5.4.90.0070.04016.21
5.4.80.0170.03016.26
5.4.70.0100.05316.25
5.4.60.0100.03716.16
5.4.50.0100.04316.23
5.4.40.0100.03716.14
5.4.30.0130.03316.13
5.4.20.0030.04316.15
5.4.10.0170.03016.22
5.4.00.0200.04015.61
5.3.290.0200.04714.66
5.3.280.0070.05714.74
5.3.270.0130.04014.64
5.3.260.0100.04014.75
5.3.250.0100.04314.79
5.3.240.0100.03714.75
5.3.230.0100.03714.58
5.3.220.0170.03014.73
5.3.210.0100.04314.60
5.3.200.0030.04314.68
5.3.190.0100.03714.50
5.3.180.0170.03014.56
5.3.170.0100.04014.70
5.3.160.0130.03714.61
5.3.150.0130.03314.75
5.3.140.0100.03714.66
5.3.130.0070.04014.62
5.3.120.0170.03014.49
5.3.110.0070.04014.57
5.3.100.0100.03714.21
5.3.90.0100.03713.95
5.3.80.0070.04014.14
5.3.70.0070.03714.06
5.3.60.0030.04014.07
5.3.50.0070.04013.93
5.3.40.0100.05313.88
5.3.30.0070.05313.91
5.3.20.0200.04013.66
5.3.10.0100.03713.77
5.3.00.0130.03313.71
5.2.170.0100.03011.10
5.2.160.0030.03311.22
5.2.150.0130.03011.29
5.2.140.0070.03311.22
5.2.130.0070.04011.27
5.2.120.0070.03711.06
5.2.110.0070.04311.17
5.2.100.0170.03311.04
5.2.90.0130.04011.14
5.2.80.0170.03711.09
5.2.70.0000.03711.05
5.2.60.0070.03011.03
5.2.50.0070.03011.09
5.2.40.0000.03311.03
5.2.30.0100.02711.04
5.2.20.0000.03711.14
5.2.10.0100.02710.80
5.2.00.0070.03010.76
5.1.60.0030.02710.04
5.1.50.0070.02310.02
5.1.40.0100.0239.91
5.1.30.0030.03010.42
5.1.20.0000.03010.23
5.1.10.0070.02310.00
5.1.00.0030.02710.04
5.0.50.0030.0238.47
5.0.40.0030.0208.38
5.0.30.0000.0378.28
5.0.20.0000.0238.15
5.0.10.0130.0178.13
5.0.00.0000.0338.14
4.4.90.0000.0175.82
4.4.80.0000.0175.94
4.4.70.0070.0135.87
4.4.60.0000.0175.80
4.4.50.0030.0135.86
4.4.40.0030.0235.82
4.4.30.0000.0175.87
4.4.20.0030.0175.88
4.4.10.0000.0175.90
4.4.00.0070.0205.85
4.3.110.0030.0135.75
4.3.100.0030.0135.76
4.3.90.0030.0135.71
4.3.80.0070.0205.71
4.3.70.0030.0135.71
4.3.60.0030.0135.84
4.3.50.0000.0175.79
4.3.40.0000.0275.77
4.3.30.0000.0174.48
4.3.20.0000.0174.59
4.3.10.0070.0104.52
4.3.00.0030.0206.77

preferences:
50.31 ms | 401 KiB | 5 Q