3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $clbk; public function __construct($b = false) { $f = new self(); if($b) { $this->clbk = function() use ($f) { return $f; }; } } } $f = new Foo(true); var_dump($f->clbk());

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.0840.01780.05
8.3.50.0950.02079.81
8.3.40.0390.01448.07
8.3.30.0380.01348.21
8.3.20.0460.01049.66
8.3.10.0190.00651.31
8.3.00.0200.00350.25
8.2.180.1040.02479.90
8.2.170.0430.01048.14
8.2.160.0360.01349.89
8.2.150.0170.01048.24
8.2.140.0170.00349.93
8.2.130.0130.00747.42
8.2.120.0290.01047.00
8.2.110.0330.00049.61
8.2.100.0440.00046.88
8.2.90.0160.01048.30
8.2.80.0180.01146.63
8.2.70.0090.01647.00
8.2.60.0150.01247.16
8.2.50.0170.01046.75
8.2.40.0180.00448.97
8.2.30.0060.02247.24
8.2.20.0180.01246.90
8.2.10.0100.01347.21
8.2.00.0250.00347.17
8.1.280.0540.02079.63
8.1.270.0270.00051.35
8.1.260.0180.00749.27
8.1.250.0230.00651.43
8.1.240.0140.01151.50
8.1.230.0340.00346.61
8.1.220.0100.01347.02
8.1.210.0210.00446.60
8.1.200.0210.01746.47
8.1.190.0070.01746.48
8.1.180.0030.01946.78
8.1.170.0120.01247.94
8.1.160.0250.00751.37
8.1.150.0100.01748.10
8.1.140.0220.00446.65
8.1.130.0190.00946.84
8.1.120.0270.00046.64
8.1.110.0140.01146.49
8.1.100.0150.00846.58
8.1.90.0170.00746.65
8.1.80.0140.01446.62
8.1.70.0170.00746.63
8.1.60.0200.01046.70
8.1.50.0220.00646.71
8.1.40.0180.00746.76
8.1.30.0190.01346.86
8.1.20.0170.01046.88
8.1.10.0160.03280.73
8.1.00.0290.01680.67
8.0.300.0310.01480.16
8.0.290.0240.01779.88
8.0.280.0260.01381.71
8.0.270.0230.02080.52
8.0.260.0250.01680.52
8.0.250.0270.02080.15
8.0.240.0140.02579.97
8.0.230.0380.02180.11
8.0.220.0300.01379.95
8.0.210.0300.01780.00
8.0.200.0210.02479.95
8.0.190.0540.01080.10
8.0.180.0210.02880.04
8.0.170.0370.02379.96
8.0.160.0230.02379.87
8.0.150.0340.01479.80
8.0.140.0280.02879.96
8.0.130.0870.042136.71
8.0.120.0360.01079.95
8.0.110.0230.01679.84
8.0.100.0370.00779.81
8.0.90.0200.02379.95
8.0.80.0570.03779.98
8.0.70.0170.02779.75
8.0.60.0320.01380.04
8.0.50.0130.02779.93
8.0.30.0560.04480.36
8.0.20.0840.04480.04
8.0.10.0230.02380.14
8.0.00.0540.05079.85
7.4.330.0260.02376.41
7.4.320.0270.02079.63
7.4.300.0390.01379.55
7.4.290.0330.02079.61
7.4.280.0430.03479.48
7.4.270.0200.02779.70
7.4.260.0300.01679.50
7.4.250.0160.02979.55
7.4.240.0220.02479.61
7.4.230.0290.01979.64
7.4.220.0630.05679.50
7.4.210.0540.04279.69
7.4.200.0170.02479.68
7.4.160.0520.05579.57
7.4.150.0720.04679.64
7.4.140.0870.04679.57
7.4.130.0750.04679.68
7.4.120.0720.04979.65
7.4.110.0700.03879.58
7.4.100.0610.04979.59
7.4.90.0710.03479.50
7.4.80.0790.06079.60
7.4.70.0680.04579.89
7.4.60.0510.05179.67
7.4.50.0040.02879.45
7.4.40.0590.04279.70
7.4.30.0760.04979.60
7.4.00.0290.02978.37
7.3.330.0900.028136.57
7.3.320.0660.046136.66
7.3.310.0330.01379.49
7.3.300.0190.02579.40
7.3.290.0230.01779.44
7.3.280.0580.06079.41
7.3.270.0720.08779.72
7.3.260.0640.04079.52
7.3.250.0640.05379.44
7.3.240.0490.07479.40
7.3.230.0660.05979.36
7.3.210.0920.05379.44
7.3.200.0650.05579.34
7.3.190.0600.07379.50
7.3.180.0530.05379.46
7.3.170.0570.05379.33
7.3.160.0560.07979.60
7.2.330.0720.03979.68
7.2.320.0540.06479.77
7.2.310.0820.04979.86
7.2.300.0660.06579.42
7.2.290.0770.04879.52
7.2.80.2520.01778.36
7.2.60.2440.02278.65
7.2.00.0270.02380.89
7.1.200.0920.03077.31
7.1.100.1910.03679.92
7.1.70.1200.03079.05
7.1.60.0230.04579.22
7.1.50.0400.03778.79
7.1.00.0070.10384.46
7.0.200.5880.04078.02
7.0.60.0370.10783.05
7.0.50.0370.10081.08
7.0.40.0270.08720.21
7.0.30.0530.08020.17
7.0.20.0430.10320.15
7.0.10.0130.05720.23
7.0.00.0200.10720.25
5.6.280.0230.09785.07
5.6.210.0430.08783.27
5.6.200.0230.09780.91
5.6.190.0230.11383.01
5.6.180.0370.06783.00
5.6.170.0500.08383.14
5.6.160.0300.08383.18
5.6.150.0170.06080.93
5.6.140.0470.09780.95
5.6.130.0170.08781.01
5.6.120.0430.10383.81
5.6.110.0130.06783.80
5.6.100.0370.09083.78
5.6.90.0230.08783.92
5.6.80.0330.10783.08
5.6.70.4600.06083.19
5.5.350.0530.08783.38
5.5.340.0100.07080.93
5.5.330.0300.07783.12
5.5.320.0230.07383.13
5.5.310.0570.06383.20
5.5.300.0230.11780.97
5.5.290.0300.08080.94
5.5.280.0300.05783.95
5.5.270.0330.10383.80
5.5.260.0270.11083.87
5.5.250.0270.09383.69
5.5.240.0670.05783.16
5.4.450.0700.08082.16
5.4.440.0570.10782.56
5.4.430.0630.10782.41
5.4.420.0570.08082.45
5.4.410.0700.07782.31
5.4.400.0630.07781.98
5.4.390.0630.08082.36
5.4.380.0530.09781.83
5.4.370.0600.07782.00
5.4.360.0500.09081.98
5.4.350.0500.08782.11
5.4.340.0530.09382.13
5.4.320.0530.09381.86
5.4.310.0570.08782.13
5.4.300.0730.06781.98
5.4.290.0670.09082.31
5.4.280.0630.08382.14
5.4.270.0600.08382.23
5.4.260.0670.07081.82
5.4.250.0500.08382.00
5.4.240.0630.07382.02
5.4.230.0670.08382.12
5.4.220.1230.07381.86
5.4.210.1000.08382.16
5.4.200.0830.10079.68
5.4.190.1130.07082.15
5.4.180.0530.09382.25
5.4.170.0670.09782.25
5.4.160.0700.06382.18
5.4.150.0500.08782.04
5.4.140.0600.07779.46
5.4.130.0570.07779.35
5.4.120.0570.08079.54
5.4.110.0700.11779.42
5.4.100.0570.09779.32
5.4.90.0470.09379.40
5.4.80.0500.08379.49
5.4.70.0400.09379.30
5.4.60.0300.09780.47
5.4.50.0100.06079.70
5.4.40.0500.05779.56
5.4.30.0570.06779.55
5.4.20.0630.09079.55

preferences:
50.07 ms | 401 KiB | 5 Q