3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TC { public function test(){ return 10; } } class TB extends TC { public function test(){ $a = $this->test(); return $a + 1; } } $obj = new TB(); echo $obj->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.0780.01072.63
8.3.50.0710.01474.62
8.3.40.0260.01344.79
8.3.30.0370.01044.89
8.3.20.0110.01146.50
8.3.10.0160.00449.27
8.3.00.0230.00343.24
8.2.180.0620.02073.65
8.2.170.0420.01046.25
8.2.160.0300.01746.51
8.2.150.0190.00344.75
8.2.140.0140.00747.47
8.2.130.0110.00747.65
8.2.120.0260.00343.63
8.2.110.0150.00947.60
8.2.100.0240.00743.91
8.2.90.0130.00745.14
8.2.80.0130.00943.50
8.2.70.0200.00343.50
8.2.60.0180.00343.80
8.2.50.0120.00943.50
8.2.40.0130.00945.52
8.2.30.0170.00746.44
8.2.20.0160.00343.42
8.2.10.0070.01143.92
8.2.00.0230.00343.91
8.1.280.0260.03077.40
8.1.270.0070.00751.34
8.1.260.0190.00346.13
8.1.250.0190.00348.13
8.1.240.0200.00347.80
8.1.230.0240.00746.89
8.1.220.0060.01343.64
8.1.210.0100.01043.23
8.1.200.0190.00443.35
8.1.190.0130.00743.10
8.1.180.0180.00343.41
8.1.170.0130.00645.04
8.1.160.0160.00447.87
8.1.150.0230.00344.88
8.1.140.0100.01045.39
8.1.130.0180.00043.70
8.1.120.0100.01043.33
8.1.110.0150.00443.41
8.1.100.0060.01343.32
8.1.90.0110.00743.43
8.1.80.0150.00343.38
8.1.70.0040.01543.33
8.1.60.0150.00643.59
8.1.50.0070.01543.61
8.1.40.0240.00043.59
8.1.30.0270.00343.61
8.1.20.0140.01043.62
8.1.10.0130.02073.19
8.1.00.0260.01673.08
8.0.300.0230.01072.66
8.0.290.0230.00772.50
8.0.280.0190.01073.97
8.0.270.0100.02172.66
8.0.260.0220.00972.66
8.0.250.0170.01772.43
8.0.240.0180.01172.34
8.0.230.0240.00772.27
8.0.220.0140.01772.38
8.0.210.0180.01172.39
8.0.200.0160.02372.45
8.0.190.0340.01272.38
8.0.180.0460.00772.43
8.0.170.0220.00972.28
8.0.160.0370.00772.44
8.0.150.0160.01672.36
8.0.140.0340.00772.40
8.0.130.0620.007121.73
8.0.120.0240.00772.27
8.0.110.0210.01172.35
8.0.100.0100.02072.45
8.0.90.0170.01772.32
8.0.80.0470.03372.38
8.0.70.0160.01672.39
8.0.60.0180.01172.25
8.0.50.0300.00372.49
8.0.30.0550.01772.60
8.0.20.0620.02272.44
8.0.10.0240.00772.32
8.0.00.0590.02472.27
7.4.330.0360.00368.98
7.4.320.0360.01072.05
7.4.300.0350.00372.02
7.4.290.0370.00372.02
7.4.280.0400.00371.90
7.4.270.0170.01372.02
7.4.260.0240.01772.13
7.4.250.0250.00972.09
7.4.240.0280.00871.98
7.4.230.0170.01472.05
7.4.220.0440.05071.90
7.4.210.0660.01372.06
7.4.200.0230.00772.18
7.4.160.0550.02071.91
7.4.150.0590.04571.89
7.4.140.0620.03171.99
7.4.130.0550.02672.13
7.4.120.0530.02971.98
7.4.110.0660.02071.85
7.4.100.0780.02672.02
7.4.90.0520.02371.97
7.4.80.0640.02571.96
7.4.70.0470.03771.94
7.4.60.0520.03172.07
7.4.50.0260.01371.77
7.4.40.0520.02672.10
7.4.30.0580.02671.96
7.4.10.0420.02970.17
7.4.00.0330.02770.27
7.3.330.0290.023121.75
7.3.320.0670.013121.75
7.3.310.0210.00971.64
7.3.300.0250.01371.66
7.3.290.0140.01871.82
7.3.280.0680.02371.74
7.3.270.0580.03671.73
7.3.260.0570.02772.04
7.3.250.0520.02871.82
7.3.240.0520.02871.87
7.3.230.0470.03171.74
7.3.210.0760.02671.69
7.3.200.0570.02371.72
7.3.190.0520.03071.77
7.3.180.0630.03371.78
7.3.170.0700.01471.92
7.3.160.0520.03171.80
7.3.130.0470.02369.96
7.3.120.0400.01770.04
7.3.110.0330.02770.25
7.3.100.0340.02170.07
7.3.90.0530.01669.96
7.3.80.0330.01770.08
7.3.70.0200.02670.23
7.3.60.0290.01970.39
7.3.50.0300.02270.25
7.3.40.0270.02770.36
7.3.30.0270.01770.08
7.3.20.0190.01078.52
7.3.10.0530.01078.27
7.3.00.0430.01178.54
7.2.330.0560.03372.06
7.2.320.0640.02971.77
7.2.310.0820.01372.27
7.2.300.0590.02372.15
7.2.290.0580.02971.80
7.2.260.0380.02370.71
7.2.250.0400.03370.56
7.2.240.0250.02570.42
7.2.230.0270.03470.36
7.2.220.0360.01470.39
7.2.210.0300.01770.45
7.2.200.0230.02670.38
7.2.190.0470.01770.59
7.2.180.0260.02370.64
7.2.170.0260.02670.68
7.2.160.0230.02370.68
7.2.150.0240.01078.71
7.2.140.0200.01078.78
7.2.130.0110.02078.85
7.2.120.0520.00978.67
7.2.110.0530.00778.71
7.2.100.0480.02078.61
7.2.90.0620.01378.67
7.2.80.0540.02278.61
7.2.70.0710.01378.69
7.2.60.0910.01178.55
7.2.50.0810.01078.69
7.2.40.0810.01178.82
7.2.30.0840.01678.70
7.2.20.0730.01478.69
7.2.10.0450.01278.88
7.2.00.1560.02279.51
7.1.330.0060.03577.73
7.1.320.0120.03177.38
7.1.310.0100.02077.68
7.1.300.0160.01977.68
7.1.290.0100.03077.61
7.1.280.0140.01777.45
7.1.270.0160.01977.68
7.1.260.0200.01077.38
7.1.250.0230.02177.72
7.1.240.0030.02877.55
7.1.230.0040.03377.71
7.1.220.0100.02177.61
7.1.210.0100.02477.43
7.1.200.0680.01177.63
7.1.190.0220.01377.66
7.1.180.0230.01677.58
7.1.170.0220.01677.60
7.1.160.0250.01477.61
7.1.150.0100.02277.42
7.1.140.0170.01777.57
7.1.130.0250.01377.39
7.1.120.0140.02477.63
7.1.110.0110.01577.64
7.1.100.4000.01776.27
7.1.90.0130.01977.49
7.1.80.0140.02477.46
7.1.70.0360.01378.23
7.1.60.0180.02378.16
7.1.50.0340.02878.00
7.1.40.0160.02677.71
7.1.30.0070.02577.36
7.1.20.0070.02177.66
7.1.10.0030.02977.61
7.1.00.0170.05480.98
7.0.330.1150.01377.18
7.0.320.0210.01177.36
7.0.310.0210.01477.34
7.0.300.0170.01377.27
7.0.290.0140.01777.51
7.0.280.0130.01377.41
7.0.270.0070.02477.32
7.0.260.0160.01677.30
7.0.250.0120.01977.51
7.0.240.0260.01677.44
7.0.230.0100.02377.21
7.0.220.0330.01377.09
7.0.210.0130.01777.44
7.0.200.3200.01573.79
7.0.190.0240.01077.32
7.0.180.0130.02577.21
7.0.170.0100.02177.31
7.0.160.0300.00777.36
7.0.150.0140.01477.23
7.0.140.0160.01977.19
7.0.130.1630.02377.43
7.0.120.0260.02877.38
7.0.110.0320.01977.36
7.0.100.0370.02577.27
7.0.90.0300.01577.12
7.0.80.0230.03077.26
7.0.70.0190.03277.43
7.0.60.0270.04576.39
7.0.50.0300.04575.37
7.0.40.0250.04616.63
7.0.30.0270.03816.82
7.0.20.0270.04216.52
7.0.10.0130.05716.76
7.0.00.0170.03516.74
5.6.400.0240.02878.70
5.6.390.0380.01779.27
5.6.380.0390.02079.10
5.6.370.0380.01479.03
5.6.360.0270.02779.26
5.6.350.0200.03679.08
5.6.340.0230.03679.05
5.6.330.0460.01679.03
5.6.320.0440.02079.31
5.6.310.0470.02179.11
5.6.300.0260.02979.08
5.6.290.0260.02679.19
5.6.280.0210.03382.60
5.6.270.0390.03678.95
5.6.260.0340.04878.84
5.6.250.0230.04678.99
5.6.240.0450.02979.16
5.6.230.0380.03878.94
5.6.220.0610.01079.12
5.6.210.0370.06482.06
5.6.200.0330.05680.84
5.6.190.0370.06281.96
5.6.180.1810.04282.19
5.6.170.0510.03381.94
5.6.160.0360.06582.15
5.6.150.0350.03880.78
5.6.140.0430.05780.87
5.6.130.0380.05180.99
5.6.120.0330.04482.42
5.6.110.0440.05982.32
5.6.100.0420.03482.37
5.6.90.0450.05382.38
5.6.80.0370.04381.97
5.6.70.0430.04378.75
5.6.60.0600.03378.82
5.6.50.0370.03379.14
5.6.40.0440.03679.02
5.6.30.0460.03978.96
5.6.20.0390.03378.69
5.6.10.0380.02878.81
5.6.00.0430.03578.79
5.5.380.0270.03078.87
5.5.370.0530.02378.75
5.5.360.0510.02378.99
5.5.350.2280.04582.11
5.5.340.0280.04180.88
5.5.330.0350.03481.92
5.5.320.0330.04382.00
5.5.310.0430.06181.89
5.5.300.0380.03880.88
5.5.290.0270.04080.93
5.5.280.0330.05382.24
5.5.270.0430.03182.20
5.5.260.0360.04782.21
5.5.250.0350.03982.13
5.5.240.0350.05982.00
5.5.230.0370.03378.98
5.5.220.0390.02978.64
5.5.210.0510.02478.92
5.5.200.0460.02678.77
5.5.190.0390.03278.71
5.5.180.0460.02478.95
5.5.170.0490.03178.71
5.5.160.0450.02178.97
5.5.150.0460.01979.04
5.5.140.0410.03179.05
5.5.130.0470.02779.07
5.5.120.0550.01478.86
5.5.110.0430.02879.03
5.5.100.0390.03278.84
5.5.90.0470.02579.01
5.5.80.0350.03178.69
5.5.70.0470.02378.87
5.5.60.0570.01779.05
5.5.50.0320.04078.93
5.5.40.0430.02078.97
5.5.30.0470.03378.97
5.5.20.0360.03278.84
5.5.10.0450.03579.11
5.5.00.0520.01378.79
5.4.450.0550.04079.83
5.4.440.0480.04579.84
5.4.430.0420.05179.96
5.4.420.0500.04579.93
5.4.410.0490.04979.55
5.4.400.0500.03979.54
5.4.390.0470.04779.61
5.4.380.0580.03579.78
5.4.370.0380.05479.70
5.4.360.0450.04879.63
5.4.350.0480.04479.57
5.4.340.0540.03679.72
5.4.330.0490.02675.36
5.4.320.0490.04979.63
5.4.310.0360.05879.69
5.4.300.0460.05379.63
5.4.290.0520.03679.61
5.4.280.0490.04679.63
5.4.270.0550.03879.67
5.4.260.0530.04279.72
5.4.250.0360.05379.59
5.4.240.0470.05279.73
5.4.230.0470.04679.72
5.4.220.0420.05779.48
5.4.210.0480.04479.63
5.4.200.0460.04579.69
5.4.190.0390.05479.66
5.4.180.0470.04579.64
5.4.170.0540.04279.79
5.4.160.0520.03879.67
5.4.150.0450.04879.49
5.4.140.0490.04478.40
5.4.130.0510.04278.50
5.4.120.0370.05378.19
5.4.110.0500.04078.26
5.4.100.0500.04078.37
5.4.90.0370.05378.43
5.4.80.0500.04278.35
5.4.70.0480.04378.47
5.4.60.0460.04578.28
5.4.50.0450.04178.41
5.4.40.0480.04078.36
5.4.30.0410.05378.40
5.4.20.0380.04578.44
5.4.10.0490.04878.36
5.4.00.0460.04478.08

preferences:
55.79 ms | 401 KiB | 5 Q