3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { private $p = 'secret'; function RetVal(){ return $this->p; } } $f = function() { return (new x)->RetVal(); }; echo $f(); $g = function(){ return $this->p; }; $nu = $g->bindto((new x), "x"); echo $nu(); echo $g->call((new x));

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.70.0090.00918.23
8.3.60.0120.00616.62
8.3.50.0150.01321.93
8.3.40.0080.00618.75
8.3.30.0150.00318.84
8.3.20.0000.00920.30
8.3.10.0000.00823.56
8.3.00.0060.00319.38
8.2.190.0140.00318.41
8.2.180.0170.00316.63
8.2.170.0130.00322.96
8.2.160.0110.00322.14
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0090.00017.38
8.2.120.0080.00026.35
8.2.110.0000.00920.35
8.2.100.0000.01117.93
8.2.90.0080.00019.17
8.2.80.0000.00817.97
8.2.70.0040.00917.38
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0030.00519.30
8.2.30.0000.00720.61
8.2.20.0030.00517.75
8.2.10.0000.00718.08
8.2.00.0000.00817.93
8.1.280.0140.00025.92
8.1.270.0090.00022.01
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0060.00320.75
8.1.230.0090.00317.66
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.47
8.1.190.0080.00017.22
8.1.180.0000.00918.10
8.1.170.0000.00920.25
8.1.160.0000.00821.90
8.1.150.0050.00218.77
8.1.140.0000.00819.52
8.1.130.0030.00517.70
8.1.120.0040.00417.50
8.1.110.0000.00717.49
8.1.100.0040.00417.48
8.1.90.0040.00417.52
8.1.80.0040.00417.38
8.1.70.0030.00317.45
8.1.60.0050.00317.48
8.1.50.0040.00417.43
8.1.40.0000.00717.51
8.1.30.0050.00317.66
8.1.20.0040.00417.55
8.1.10.0000.00717.61
8.1.00.0000.00717.49
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0040.00418.38
8.0.270.0040.00416.82
8.0.260.0030.00317.25
8.0.250.0000.00816.88
8.0.240.0000.00716.98
8.0.230.0040.00316.88
8.0.220.0040.00416.78
8.0.210.0040.00416.77
8.0.200.0030.00316.95
8.0.190.0070.00316.96
8.0.180.0080.00016.92
8.0.170.0030.00616.75
8.0.160.0040.00416.88
8.0.150.0030.00616.80
8.0.140.0000.01016.85
8.0.130.0000.00613.33
8.0.120.0040.00416.82
8.0.110.0000.00816.76
8.0.100.0040.00416.96
8.0.90.0040.00416.91
8.0.80.0060.00916.80
8.0.70.0040.00416.77
8.0.60.0050.00316.91
8.0.50.0000.00816.72
8.0.30.0090.01017.22
8.0.20.0070.01117.40
8.0.10.0040.00416.90
8.0.00.0080.01016.83
7.4.330.0020.00216.72
7.4.320.0000.00616.39
7.4.300.0030.00316.61
7.4.290.0080.00016.51
7.4.280.0070.00016.49
7.4.270.0000.00716.57
7.4.260.0030.00316.60
7.4.250.0000.00816.45
7.4.240.0010.00616.52
7.4.230.0060.00016.70
7.4.220.0060.01216.62
7.4.210.0080.01216.55
7.4.200.0000.00716.67
7.4.160.0080.00816.48
7.4.150.0070.01017.40
7.4.140.0120.01017.86
7.4.130.0110.00616.51
7.4.120.0070.01016.45
7.4.110.0060.01616.61
7.4.100.0130.01016.61
7.4.90.0070.01016.54
7.4.80.0110.00819.39
7.4.70.0100.01316.56
7.4.60.0140.00616.52
7.4.50.0100.00316.39
7.4.40.0100.00716.66
7.4.30.0130.01016.57
7.4.00.0030.01415.09
7.3.330.0000.00513.25
7.3.320.0000.00513.30
7.3.310.0070.00016.31
7.3.300.0000.00716.34
7.3.290.0040.01316.27
7.3.280.0110.00716.32
7.3.270.0130.00317.40
7.3.260.0070.01216.56
7.3.250.0120.00616.31
7.3.240.0110.00616.37
7.3.230.0070.01016.53
7.3.210.0100.00716.56
7.3.200.0060.01016.24
7.3.190.0120.01216.38
7.3.180.0070.01416.25
7.3.170.0140.00416.27
7.3.160.0080.00716.48
7.2.330.0140.00616.76
7.2.320.0140.00716.75
7.2.310.0030.01416.80
7.2.300.0100.01316.80
7.2.290.0090.01216.68
7.2.60.0070.00716.75
7.2.00.0060.00919.59
7.1.200.0080.00415.56
7.1.100.0040.00817.85
7.1.70.0000.00716.91
7.1.60.0110.01419.48
7.1.50.0030.00716.77
7.1.00.0070.07322.36
7.0.200.0330.00414.48
7.0.60.0030.08720.02
7.0.50.0030.05317.87
7.0.40.0030.04320.04
7.0.30.0200.08720.08
7.0.20.0230.03720.24
7.0.10.0100.08320.05
7.0.00.0070.08320.31
5.6.280.0000.07321.07
5.6.210.0170.07320.49
5.6.200.0030.09018.29
5.6.190.0070.08020.61
5.6.180.0200.05720.63
5.6.170.0230.04720.54
5.6.160.0070.06020.46
5.6.150.0070.08018.16
5.6.140.0070.03718.19
5.6.130.0070.07318.17
5.6.120.0130.07320.99
5.6.110.0000.05721.20
5.6.100.0400.07321.12
5.6.90.0070.06020.97
5.6.80.0130.03020.52
5.5.350.3170.04720.42
5.5.340.0070.08017.96
5.5.330.0100.08320.19
5.5.320.0270.08020.28
5.5.310.0270.07020.28
5.5.300.0030.05318.08
5.5.290.0070.07718.02
5.5.280.0030.07720.77
5.5.270.0100.08320.77
5.5.260.0130.08320.76
5.5.250.0030.08320.50
5.5.240.0170.06720.18

preferences:
48.62 ms | 401 KiB | 5 Q