3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors',1); class foo { private function do_something ($str) { echo($str); } } class bar extends foo { public function do_something () { echo('baz'); } }

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.40.0110.00418.54
8.3.30.0040.01118.64
8.3.20.0050.00320.21
8.3.10.0040.00421.77
8.3.00.0080.00019.84
8.2.170.0110.01122.96
8.2.160.0100.01020.52
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00321.04
8.2.120.0030.00526.35
8.2.110.0140.00721.91
8.2.100.0000.01217.59
8.2.90.0000.00818.03
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00417.67
8.2.50.0040.00418.07
8.2.40.0050.00322.33
8.2.30.0000.00720.55
8.2.20.0000.00717.57
8.2.10.0040.00417.89
8.2.00.0000.00718.04
8.1.270.0040.01120.39
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00022.05
8.1.230.0130.00020.95
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0080.00017.10
8.1.180.0070.00018.10
8.1.170.0000.00918.59
8.1.160.0000.00720.69
8.1.150.0080.00018.75
8.1.140.0050.00319.37
8.1.130.0030.00317.57
8.1.120.0000.00817.32
8.1.110.0040.00417.31
8.1.100.0000.00817.22
8.1.90.0050.00317.32
8.1.80.0040.00417.17
8.1.70.0030.00317.23
8.1.60.0000.00717.41
8.1.50.0040.00417.43
8.1.40.0040.00417.27
8.1.30.0040.00417.44
8.1.20.0000.00717.50
8.1.10.0030.00617.45
8.1.00.0000.00717.36
8.0.300.0040.00420.04
8.0.290.0040.00416.63
8.0.280.0000.00718.33
8.0.270.0030.00317.06
8.0.260.0000.00617.18
8.0.250.0000.00716.84
8.0.240.0040.00416.86
8.0.230.0040.00416.80
8.0.220.0000.00716.75
8.0.210.0030.00516.64
8.0.200.0050.00516.87
8.0.190.0040.00416.75
8.0.180.0040.00416.79
8.0.170.0000.00816.69
8.0.160.0040.00416.84
8.0.150.0050.00316.64
8.0.140.0030.00516.72
8.0.130.0030.00313.13
8.0.120.0070.00016.66
8.0.110.0080.00016.66
8.0.100.0040.00416.57
8.0.90.0000.00716.71
8.0.80.0070.01016.75
8.0.70.0040.00416.81
8.0.60.0000.00716.62
8.0.50.0050.00216.76
8.0.30.0110.00817.01
8.0.20.0110.01017.40
8.0.10.0040.00416.71
8.0.00.0140.00316.57
7.4.330.0050.00016.66
7.4.320.0060.00016.39
7.4.300.0000.00616.48
7.4.290.0000.00816.36
7.4.280.0050.00316.43
7.4.270.0040.00416.47
7.4.260.0000.00716.41
7.4.250.0040.00416.36
7.4.240.0020.00616.33
7.4.230.0000.00716.38
7.4.220.0060.01216.37
7.4.210.0110.01116.33
7.4.200.0040.00316.52
7.4.160.0070.01016.46
7.4.150.0060.01017.40
7.4.140.0060.01317.86
7.4.130.0060.01216.52
7.4.120.0100.01216.33
7.4.110.0140.00316.37
7.4.100.0150.00916.26
7.4.90.0090.01216.23
7.4.80.0100.00719.39
7.4.70.0120.00316.45
7.4.60.0130.00316.43
7.4.50.0030.01016.25
7.4.40.0060.00916.41
7.4.30.0030.01416.40
7.4.00.0080.00814.93
7.3.330.0000.00613.14
7.3.320.0000.00513.17
7.3.310.0070.00016.14
7.3.300.0000.00716.19
7.3.290.0090.00516.14
7.3.280.0050.01116.16
7.3.270.0130.00317.40
7.3.260.0070.01016.38
7.3.240.0060.01316.25
7.3.230.0100.01316.39
7.3.210.0070.01016.44
7.3.200.0030.01316.27
7.3.190.0070.01016.24
7.3.180.0090.01416.52
7.3.170.0100.00716.40
7.3.160.0160.00016.19
7.3.120.0080.01014.82
7.3.110.0090.00514.59
7.3.100.0080.00714.77
7.3.90.0090.00814.76
7.3.80.0070.00914.88
7.3.70.0050.01014.59
7.3.60.0060.00814.57
7.3.50.0050.00914.58
7.3.40.0080.00514.54
7.3.30.0100.00614.74
7.3.20.0090.00516.60
7.3.10.0050.00816.39
7.3.00.0070.00716.52
7.2.330.0040.01416.39
7.2.320.0180.00616.50
7.2.310.0070.01416.60
7.2.300.0100.00616.31
7.2.290.0130.00616.54
7.2.250.0120.00814.96
7.2.240.0070.01114.82
7.2.230.0070.01114.74
7.2.220.0050.00914.83
7.2.210.0050.01214.84
7.2.200.0070.00814.95
7.2.190.0100.00514.85
7.2.180.0100.00514.62
7.2.170.0070.01014.81
7.2.160.0060.01214.66
7.2.150.0030.01016.75
7.2.140.0140.00016.80
7.2.130.0090.00916.67
7.2.120.0040.01416.77
7.2.110.0090.00916.70
7.2.100.0090.00916.74
7.2.90.0070.01016.77
7.2.80.0040.01116.36
7.2.70.0040.00816.81
7.2.60.0080.00816.76
7.2.50.0070.00716.72
7.2.40.0030.00716.88
7.2.30.0040.01416.78
7.2.20.0040.01116.74
7.2.10.0040.01416.78
7.2.00.0070.00718.03
7.1.330.0060.00915.66
7.1.320.0060.00815.69
7.1.310.0050.00915.53
7.1.300.0080.00715.61
7.1.290.0050.00715.50
7.1.280.0070.01015.62
7.1.270.0080.00615.46
7.1.260.0090.00315.46
7.1.250.0070.01015.64
7.1.200.0070.00715.45
7.1.100.0070.01018.05
7.1.70.0000.01516.74
7.1.60.0070.01419.44
7.1.50.0100.01416.95
7.1.00.0000.08022.30
7.0.200.0030.00716.71
7.0.60.0030.06020.04
7.0.50.0070.08717.85
7.0.40.0070.05320.28
7.0.30.0330.06720.09
7.0.20.0330.06720.16
7.0.10.0070.08720.23
7.0.00.0000.06020.23
5.6.280.0000.04021.12
5.6.210.0030.05720.52
5.6.200.0070.05018.16
5.6.190.0030.08020.57
5.6.180.0200.07320.47
5.6.170.0300.06720.47
5.6.160.0070.08720.55
5.6.150.0030.08718.28
5.6.140.0030.05318.27
5.6.130.0030.05318.14
5.6.120.0030.04721.15
5.6.110.0170.08021.07
5.6.100.0000.09021.14
5.6.90.0070.04320.96
5.6.80.0130.07720.46
5.5.350.0130.07320.42
5.5.340.0030.04018.05
5.5.330.0100.08320.49
5.5.320.0570.03720.35
5.5.310.0230.04720.41
5.5.300.0130.07318.07
5.5.290.0070.08317.99
5.5.280.0170.07320.66
5.5.270.0100.04020.88
5.5.260.0030.05020.75
5.5.250.0130.07320.47
5.5.240.3630.04020.08

preferences:
46.06 ms | 400 KiB | 5 Q