3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private function do_something ($str) { } } class bar extends foo { public function do_something () { } } $b = new bar(); $b->do_something();

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.01316.50
8.3.50.0120.00721.98
8.3.40.0070.01018.72
8.3.30.0110.00418.54
8.3.20.0030.00521.92
8.3.10.0040.01121.64
8.3.00.0030.00519.84
8.2.180.0090.00616.49
8.2.170.0130.00722.96
8.2.160.0110.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00626.16
8.2.110.0000.01022.26
8.2.100.0110.00617.89
8.2.90.0000.00719.09
8.2.80.0000.01217.97
8.2.70.0090.00017.50
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0060.00322.15
8.2.30.0000.00820.61
8.2.20.0050.00217.54
8.2.10.0040.00417.86
8.2.00.0000.00718.04
8.1.280.0070.01425.92
8.1.270.0000.00723.99
8.1.260.0100.01026.35
8.1.250.0110.00028.09
8.1.240.0040.00423.98
8.1.230.0080.00317.70
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.36
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0060.00318.51
8.1.160.0000.00720.60
8.1.150.0000.00718.81
8.1.140.0040.00419.49
8.1.130.0000.00717.61
8.1.120.0000.00717.40
8.1.110.0040.00417.29
8.1.100.0070.00017.29
8.1.90.0040.00417.39
8.1.80.0000.00717.39
8.1.70.0070.00017.29
8.1.60.0050.00217.62
8.1.50.0000.00817.48
8.1.40.0060.00317.53
8.1.30.0000.00817.66
8.1.20.0040.00417.62
8.1.10.0000.00717.56
8.1.00.0070.00017.40
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00818.29
8.0.270.0030.00317.16
8.0.260.0030.00317.18
8.0.250.0000.00616.85
8.0.240.0000.00716.95
8.0.230.0000.00916.77
8.0.220.0000.00816.70
8.0.210.0000.00716.77
8.0.200.0030.00316.75
8.0.190.0000.01016.81
8.0.180.0030.00316.73
8.0.170.0040.00416.78
8.0.160.0040.00416.78
8.0.150.0000.00716.82
8.0.140.0000.00716.67
8.0.130.0030.00313.23
8.0.120.0080.00016.79
8.0.110.0040.00416.82
8.0.100.0000.00716.80
8.0.90.0040.00416.85
8.0.80.0140.00316.86
8.0.70.0040.00416.86
8.0.60.0000.00716.85
8.0.50.0000.00716.72
8.0.30.0130.00716.88
8.0.20.0100.00717.40
8.0.10.0000.00816.80
8.0.00.0070.01016.55
7.4.330.0030.00316.77
7.4.320.0070.00016.33
7.4.300.0000.00616.48
7.4.290.0060.00016.59
7.4.280.0040.00416.34
7.4.270.0030.00316.49
7.4.260.0030.00316.53
7.4.250.0080.00016.48
7.4.240.0040.00416.52
7.4.230.0030.00316.48
7.4.220.0060.01216.39
7.4.210.0060.00916.68
7.4.200.0040.00416.59
7.4.160.0060.00916.68
7.4.150.0170.01017.40
7.4.140.0090.01117.86
7.4.130.0100.01316.51
7.4.120.0050.01416.38
7.4.110.0150.00316.49
7.4.100.0110.01016.70
7.4.90.0120.00916.59
7.4.80.0090.00619.39
7.4.70.0180.00016.33
7.4.60.0070.01016.34
7.4.50.0100.00616.48
7.4.40.0090.00616.51
7.4.30.0070.01016.42
7.4.00.0130.00314.79
7.3.330.0020.00213.10
7.3.320.0000.00513.17
7.3.310.0070.00016.23
7.3.300.0070.00016.25
7.3.290.0050.01016.25
7.3.280.0100.01016.26
7.3.270.0070.01017.40
7.3.260.0070.01716.37
7.3.240.0100.00616.39
7.3.230.0090.00916.39
7.3.210.0150.00316.28
7.3.200.0070.01016.58
7.3.190.0060.00916.11
7.3.180.0120.00916.10
7.3.170.0140.00316.36
7.3.160.0100.00616.41
7.2.330.0140.00416.56
7.2.320.0090.00916.66
7.2.310.0060.01616.52
7.2.300.0100.01016.36
7.2.290.0100.00716.68
7.2.60.0000.01616.75
7.2.00.0070.00719.28
7.1.200.0140.00015.57
7.1.100.0040.00418.20
7.1.70.0030.00516.75
7.1.60.0070.01819.44
7.1.50.0100.01416.95
7.1.00.0030.07722.31
7.0.200.0030.00716.70
7.0.60.0070.03719.79
7.0.50.0100.06717.91
7.0.40.0130.08020.40
7.0.30.0200.09020.36
7.0.20.0300.08320.07
7.0.10.0100.05320.08
7.0.00.0030.09020.20
5.6.280.0030.07020.93
5.6.210.0030.05320.47
5.6.200.0130.08018.23
5.6.190.0130.06720.48
5.6.180.0170.04720.63
5.6.170.0370.07320.55
5.6.160.0070.07020.37
5.6.150.0030.08318.19
5.6.140.0030.06318.17
5.6.130.0000.05718.15
5.6.120.0100.03720.99
5.6.110.0170.06720.86
5.6.100.0070.06721.09
5.6.90.0070.06321.00
5.6.80.0100.05020.38
5.5.350.0130.08020.45
5.5.340.0070.03318.09
5.5.330.0130.03020.38
5.5.320.0600.07020.32
5.5.310.0230.08320.34
5.5.300.0100.08017.96
5.5.290.0030.05318.07
5.5.280.0070.07720.89
5.5.270.0030.05320.80
5.5.260.0030.05720.65
5.5.250.0130.07320.69
5.5.240.0200.04320.28

preferences:
60.52 ms | 401 KiB | 5 Q