3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace X { class Xx { public function get() { return function () { return new Yy(5); }; } } class Yy { public function __construct($a) { var_dump($a); } } } namespace Z { class Zz { public function get() { $x = new \X\Xx(); $f = $x->get(); $f(); } } (new Zz())->get(); }

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.01118.34
8.3.50.0070.01117.98
8.3.40.0140.00718.62
8.3.30.0040.01118.55
8.3.20.0100.00721.92
8.3.10.0000.00823.69
8.3.00.0050.00320.79
8.2.180.0130.00318.41
8.2.170.0140.00722.96
8.2.160.0110.00420.02
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00718.09
8.2.120.0070.00026.35
8.2.110.0050.00521.00
8.2.100.0030.00717.78
8.2.90.0030.00618.22
8.2.80.0000.00817.97
8.2.70.0050.00317.80
8.2.60.0090.00018.09
8.2.50.0050.00318.10
8.2.40.0040.00419.33
8.2.30.0000.00819.29
8.2.20.0050.00218.00
8.2.10.0030.00619.23
8.2.00.0030.00519.54
8.1.280.0090.00625.92
8.1.270.0040.00418.95
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00720.77
8.1.230.0040.00820.97
8.1.220.0000.00817.74
8.1.210.0060.00318.95
8.1.200.0050.00317.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0050.00318.49
8.1.160.0000.00718.80
8.1.150.0040.00418.80
8.1.140.0040.00420.77
8.1.130.0000.00620.13
8.1.120.0000.00717.37
8.1.110.0000.00717.46
8.1.100.0040.00417.47
8.1.90.0040.00417.36
8.1.80.0050.00317.48
8.1.70.0080.00017.48
8.1.60.0040.00817.58
8.1.50.0040.00417.45
8.1.40.0040.00417.52
8.1.30.0040.00417.61
8.1.20.0050.00317.53
8.1.10.0000.00817.52
8.1.00.0040.00417.46
8.0.300.0000.00719.79
8.0.290.0050.00216.63
8.0.280.0000.00718.43
8.0.270.0000.00717.20
8.0.260.0030.00318.39
8.0.250.0000.00716.93
8.0.240.0050.00316.76
8.0.230.0000.00716.91
8.0.220.0000.00816.70
8.0.210.0000.00716.73
8.0.200.0000.00616.89
8.0.190.0000.00716.84
8.0.180.0040.00416.87
8.0.170.0060.00316.83
8.0.160.0040.00416.97
8.0.150.0070.00016.88
8.0.140.0030.00516.74
8.0.130.0000.00613.32
8.0.120.0030.00716.82
8.0.110.0040.00416.86
8.0.100.0000.00716.78
8.0.90.0070.00016.97
8.0.80.0090.01116.81
8.0.70.0000.00716.79
8.0.60.0000.00717.01
8.0.50.0000.00816.89
8.0.30.0160.00317.07
8.0.20.0130.00717.11
8.0.10.0070.00016.86
8.0.00.0130.00516.61
7.4.330.0030.00315.55
7.4.320.0030.00316.39
7.4.300.0040.00416.61
7.4.290.0070.00016.62
7.4.280.0030.00516.49
7.4.270.0050.00516.59
7.4.260.0000.00716.39
7.4.250.0050.00216.46
7.4.240.0000.00816.41
7.4.230.0000.00716.70
7.4.220.0000.00916.68
7.4.210.0050.01116.50
7.4.200.0000.00716.63
7.4.160.0100.00616.43
7.4.140.0070.01117.86
7.4.130.0150.00616.58
7.4.120.0190.00316.63
7.4.110.0150.00616.55
7.4.100.0090.00916.63
7.4.90.0100.00716.48
7.4.80.0100.00619.39
7.4.70.0060.01016.55
7.4.60.0130.00916.46
7.4.50.0060.00616.56
7.4.40.0130.00916.37
7.4.00.0040.01414.71
7.3.330.0000.00513.31
7.3.320.0030.00313.16
7.3.310.0000.00716.34
7.3.300.0000.00616.28
7.3.290.0030.00316.17
7.3.280.0080.00816.28
7.3.260.0120.00616.26
7.3.240.0110.00716.31
7.3.230.0090.01316.59
7.3.210.0130.00316.36
7.3.200.0070.01116.36
7.3.190.0050.00516.23
7.3.180.0060.01316.33
7.3.170.0150.00716.31
7.3.160.0160.00016.29
7.3.10.0280.00815.57
7.3.00.0290.00815.79
7.2.330.0060.01216.49
7.2.320.0080.00816.52
7.2.310.0030.01316.70
7.2.300.0070.01016.61
7.2.290.0120.00416.50
7.2.130.0190.00815.91
7.2.120.0140.01015.83
7.2.110.0130.00815.65
7.2.100.0210.00315.99
7.2.90.0130.01015.77
7.2.80.0270.01115.81
7.2.70.0230.00415.83
7.2.60.0150.00915.87
7.2.50.0170.00715.96
7.2.40.0200.00316.06
7.2.30.0180.00615.89
7.2.20.0450.00516.00
7.2.10.0200.00715.84
7.2.00.0310.00316.04
7.1.250.0250.00814.81

preferences:
59.46 ms | 400 KiB | 5 Q