3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myparent { public function foo($bar) { // do stuff } } class mychild extends myparent { public $val; private function bar(myparent &$baz) { // do stuff } public function __construct($val) { $this->val = $val; } } $child = new mychild('hello world'); $child->foo('test'); $child->bar('test');

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.0110.00718.43
8.3.50.0040.01521.97
8.3.40.0090.00618.68
8.3.30.0070.00719.04
8.3.20.0040.00419.96
8.3.10.0060.00323.53
8.3.00.0050.00319.27
8.2.180.0120.00616.50
8.2.170.0100.00322.96
8.2.160.0030.01020.41
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00820.78
8.2.110.0060.00322.28
8.2.100.0040.00720.53
8.2.90.0050.00219.28
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0030.00619.89
8.2.30.0000.00718.20
8.2.20.0030.00517.55
8.2.10.0050.00317.91
8.2.00.0040.00417.55
8.1.280.0110.00425.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.09
8.1.230.0080.00419.11
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0080.00018.46
8.1.160.0050.00321.86
8.1.150.0030.00618.58
8.1.140.0040.00417.38
8.1.130.0050.00317.81
8.1.120.0030.00517.25
8.1.110.0050.00217.27
8.1.100.0000.00717.44
8.1.90.0040.00417.39
8.1.80.0040.00417.41
8.1.70.0030.00317.39
8.1.60.0030.00617.46
8.1.50.0060.00317.46
8.1.40.0000.00817.52
8.1.30.0040.00417.50
8.1.20.0030.00617.66
8.1.10.0050.00317.62
8.1.00.0030.00517.52
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00018.32
8.0.270.0040.00717.20
8.0.260.0030.00317.11
8.0.250.0030.00316.98
8.0.240.0070.00016.88
8.0.230.0030.00316.84
8.0.220.0060.00016.91
8.0.210.0000.00716.84
8.0.200.0030.00316.84
8.0.190.0000.00716.94
8.0.180.0040.00416.94
8.0.170.0040.00416.91
8.0.160.0040.00417.00
8.0.150.0040.00416.70
8.0.140.0000.00716.77
8.0.130.0000.00513.32
8.0.120.0050.00316.88
8.0.110.0000.00716.86
8.0.100.0050.00216.79
8.0.90.0000.00716.82
8.0.80.0080.00916.88
8.0.70.0000.00716.93
8.0.60.0000.00716.77
8.0.50.0000.00716.75
8.0.30.0090.01517.02
8.0.20.0170.00517.40
8.0.10.0040.00416.87
8.0.00.0110.00816.96
7.4.330.0000.00615.00
7.4.320.0070.00016.35
7.4.300.0040.00416.43
7.4.290.0000.00716.65
7.4.280.0020.00516.51
7.4.270.0020.00516.43
7.4.260.0030.00316.52
7.4.250.0070.00016.55
7.4.240.0000.00716.48
7.4.230.0040.00316.45
7.4.220.0140.00416.42
7.4.210.0070.01116.50
7.4.200.0030.00316.35
7.4.190.0000.00716.59
7.4.160.0120.00316.54
7.4.150.0150.00317.40
7.4.140.0130.00317.86
7.4.130.0120.00516.43
7.4.120.0080.01016.46
7.4.110.0100.01016.47
7.4.100.0040.01316.64
7.4.90.0060.00916.40
7.4.80.0060.01519.39
7.4.70.0100.00716.46
7.4.60.0040.01416.48
7.4.50.0050.00316.44
7.4.40.0100.00716.53
7.4.30.0090.00616.56
7.4.00.0040.01215.06
7.3.330.0000.00613.18
7.3.320.0030.00313.24
7.3.310.0040.00416.41
7.3.300.0000.00616.22
7.3.290.0110.00316.42
7.3.280.0100.00816.35
7.3.270.0070.01017.40
7.3.260.0100.00716.54
7.3.250.0090.00916.43
7.3.240.0070.01016.54
7.3.230.0090.00616.39
7.3.210.0090.00916.42
7.3.200.0130.00319.39
7.3.190.0060.01516.35
7.3.180.0120.00316.60
7.3.170.0130.00316.53
7.3.160.0060.00916.42
7.3.120.0100.00714.58
7.2.330.0100.00716.59
7.2.320.0060.01216.72
7.2.310.0060.01016.63
7.2.300.0150.00616.69
7.2.290.0120.00916.40
7.2.80.0100.00316.40
7.2.60.0080.00816.79
7.2.00.0040.01119.32
7.1.200.0040.00715.73
7.1.100.0040.00717.70
7.1.70.0000.00716.92
7.1.60.0150.00919.70
7.1.50.0060.01916.77
7.1.00.0070.07322.32
7.0.200.0020.00516.75
7.0.140.0000.07322.07
7.0.60.0270.06321.79
7.0.50.0070.03717.86
7.0.40.0030.04720.30
7.0.30.0270.04020.24
7.0.20.0230.07320.25
7.0.10.0170.05320.19
7.0.00.0070.03720.24
5.6.280.0100.06721.11
5.6.210.0070.04320.72
5.6.200.0070.04018.13
5.6.190.0030.04720.52
5.6.180.0130.04720.41
5.6.170.0170.05020.44
5.6.160.0070.03720.43
5.6.150.0100.07718.27
5.6.140.0030.06318.18
5.6.130.0130.05018.14
5.6.120.0070.05721.14
5.6.110.0130.08020.86
5.6.100.0030.08721.02
5.6.90.0200.07021.03
5.6.80.0030.04020.51
5.5.350.0270.08020.34
5.5.340.0070.03317.99
5.5.330.0070.05020.37
5.5.320.0270.03720.38
5.5.310.0300.08720.19
5.5.300.0070.04318.03
5.5.290.0100.06718.08
5.5.280.0130.08020.81
5.5.270.0030.08720.73
5.5.260.0070.07320.96
5.5.250.0070.04020.55
5.5.240.0330.07020.05
5.4.450.3270.03719.38
5.4.440.0000.04719.27
5.4.430.1700.04319.39
5.4.420.3630.04319.49
5.4.410.3670.03719.41
5.4.400.3170.04018.95
5.4.390.3700.03718.93
5.4.380.3970.03718.93
5.4.370.3930.03718.97
5.4.360.4100.04019.18
5.4.350.3700.04019.04
5.4.340.3800.03319.21
5.4.320.3930.04719.04
5.4.310.3900.04319.05
5.4.300.4000.04019.15
5.4.290.3930.04019.15
5.4.280.3800.03719.26
5.4.270.3700.04319.10
5.4.260.3800.03719.17
5.4.250.4100.04018.93
5.4.240.3130.04018.97
5.4.230.3770.04019.16
5.4.220.3930.04018.97
5.4.210.3730.03318.98
5.4.200.2070.04319.18
5.4.190.1400.03719.09
5.4.180.0870.03718.92
5.4.170.0100.03319.16
5.4.160.1100.04019.08
5.4.150.1770.03718.97
5.4.140.3130.03316.54
5.4.130.3070.03716.52
5.4.120.3600.03016.48
5.4.110.1700.03316.40
5.4.100.3200.03316.50
5.4.90.3330.04016.48
5.4.80.3570.03316.67
5.4.70.4800.03716.38
5.4.60.4330.03316.54
5.4.50.0030.06716.45
5.4.40.0070.05316.62
5.4.30.3430.03016.29
5.4.20.4530.04016.30
5.4.10.3800.03316.50
5.4.00.3930.03015.90
5.3.290.4070.04014.70
5.3.280.4300.04314.67
5.3.270.0000.04014.77
5.3.260.2800.03314.68
5.3.250.2700.04014.64
5.3.240.1800.03714.61
5.3.230.3630.03714.61
5.3.220.1630.03314.62
5.3.210.2400.03314.58
5.3.200.3400.04714.45
5.3.190.3130.03014.71
5.3.180.2870.03014.59
5.3.170.3770.03314.72
5.3.160.4370.03314.57
5.3.150.0330.06014.64
5.3.140.0100.05314.70
5.3.130.3370.04014.55
5.3.120.3500.04014.58
5.3.110.3900.04014.62
5.3.100.3670.03014.05
5.3.90.4030.03314.04
5.3.80.4330.03314.12
5.3.70.4070.03714.10
5.3.60.4030.03014.05
5.3.50.3600.03313.96
5.3.40.3430.04313.95
5.3.30.3500.03313.86
5.3.20.3230.03713.70
5.3.10.3770.03313.67
5.3.00.3900.03713.54
5.2.170.3370.03011.10
5.2.160.3230.03011.21
5.2.150.2970.02011.21
5.2.140.3070.04011.10
5.2.130.3200.02711.00
5.2.120.3430.02711.06
5.2.110.3300.02311.07
5.2.100.3070.02711.10
5.2.90.3200.02711.16
5.2.80.3330.03311.16
5.2.70.2830.04011.06
5.2.60.3200.03011.11
5.2.50.3270.02311.17
5.2.40.2700.03311.03
5.2.30.2830.02710.97
5.2.20.2670.02711.12
5.2.10.3100.02010.78
5.2.00.3070.02710.75
5.1.60.2570.02710.01
5.1.50.2130.02010.16
5.1.40.2530.0239.93
5.1.30.2100.03010.34
5.1.20.2700.02310.42
5.1.10.2630.02710.14
5.1.00.2530.01710.13
5.0.50.1500.0178.50
5.0.40.1300.0238.40
5.0.30.1500.0408.37
5.0.20.1300.0208.22
5.0.10.1270.0208.15
5.0.00.1270.0308.19
4.4.90.1370.0105.86
4.4.80.1430.0135.84
4.4.70.1300.0235.83
4.4.60.1530.0135.76
4.4.50.1670.0205.90
4.4.40.1330.0205.81
4.4.30.1070.0135.89
4.4.20.1570.0135.91
4.4.10.1330.0135.95
4.4.00.1370.0275.92
4.3.110.1300.0175.75
4.3.100.1430.0175.80
4.3.90.0930.0135.78
4.3.80.0800.0235.78
4.3.70.0970.0135.78
4.3.60.1430.0105.70
4.3.50.1230.0135.73
4.3.40.1500.0235.64
4.3.30.0600.0175.32
4.3.20.0730.0175.32
4.3.10.0870.0235.32
4.3.00.0930.0205.32

preferences:
59.62 ms | 400 KiB | 5 Q