3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ private $stuff = 10; function test(){ return new class($this){ function __construct(A $s){ $this->s = $s; } function test(){ return $this->s->stuff; } }; } } $x = new A; $x->test()->text();

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.0100.01018.68
8.3.50.0090.00618.17
8.3.40.0150.00018.88
8.3.30.0060.00818.97
8.3.20.0040.00420.38
8.3.10.0080.00020.64
8.3.00.0050.00320.68
8.2.180.0170.00316.88
8.2.170.0120.00322.96
8.2.160.0120.00822.22
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00421.04
8.2.120.0000.00726.35
8.2.110.0000.00921.94
8.2.100.0050.00518.03
8.2.90.0080.00019.17
8.2.80.0060.00317.97
8.2.70.0030.00517.50
8.2.60.0080.00017.93
8.2.50.0040.00418.09
8.2.40.0040.00420.59
8.2.30.0040.00419.42
8.2.20.0000.00717.74
8.2.10.0040.00418.12
8.2.00.0080.00017.94
8.1.280.0120.00625.92
8.1.270.0070.01123.95
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0100.00023.90
8.1.230.0110.00017.77
8.1.220.0050.00317.79
8.1.210.0030.00618.77
8.1.200.0060.00317.47
8.1.190.0060.00319.14
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0000.00720.68
8.1.150.0000.00718.89
8.1.140.0000.00919.46
8.1.130.0000.00717.65
8.1.120.0040.00417.38
8.1.110.0000.00717.35
8.1.100.0050.00217.48
8.1.90.0030.00617.50
8.1.80.0030.00517.34
8.1.70.0050.00517.50
8.1.60.0000.00917.59
8.1.50.0000.00917.58
8.1.40.0080.00317.54
8.1.30.0030.00617.69
8.1.20.0030.00617.47
8.1.10.0000.00717.59
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0000.00718.50
8.0.270.0000.00717.32
8.0.260.0050.00317.39
8.0.250.0100.00016.91
8.0.240.0000.00817.02
8.0.230.0030.00316.93
8.0.220.0100.00016.97
8.0.210.0000.00816.95
8.0.200.0030.00316.88
8.0.190.0070.00016.98
8.0.180.0050.00316.96
8.0.170.0000.00816.97
8.0.160.0050.00216.89
8.0.150.0040.00316.89
8.0.140.0050.00516.81
8.0.130.0050.00013.34
8.0.120.0000.01016.95
8.0.110.0030.00416.85
8.0.100.0040.00416.82
8.0.90.0030.00516.92
8.0.80.0060.00916.96
8.0.70.0040.00416.88
8.0.60.0070.00017.07
8.0.50.0040.00416.82
8.0.30.0120.00417.05
8.0.20.0110.00817.40
8.0.10.0030.00516.95
8.0.00.0120.00516.77
7.4.330.0020.00216.67
7.4.320.0030.00316.65
7.4.300.0000.00716.58
7.4.290.0030.00316.50
7.4.280.0040.00416.61
7.4.270.0000.00816.61
7.4.260.0100.00016.56
7.4.250.0040.00416.45
7.4.240.0040.00416.54
7.4.230.0000.00716.63
7.4.220.0060.01016.63
7.4.210.0080.00816.61
7.4.200.0050.00216.49
7.4.160.0030.01216.72
7.4.150.0070.01017.40
7.4.140.0080.01117.86
7.4.130.0070.01616.65
7.4.120.0110.00616.54
7.4.110.0070.01016.40
7.4.100.0140.00416.38
7.4.90.0070.01116.48
7.4.80.0060.01219.39
7.4.70.0100.00716.55
7.4.60.0070.01016.52
7.4.50.0110.00416.43
7.4.40.0030.01416.63
7.4.30.0130.00316.62
7.4.00.0010.01314.86
7.3.330.0030.00313.38
7.3.320.0020.00213.29
7.3.310.0040.00416.40
7.3.300.0030.00316.31
7.3.290.0000.00716.32
7.3.280.0020.01316.35
7.3.270.0100.01017.40
7.3.260.0120.00616.57
7.3.240.0130.00616.59
7.3.230.0070.01516.58
7.3.210.0090.00816.38
7.3.200.0100.00716.45
7.3.190.0090.00616.31
7.3.180.0060.01016.44
7.3.170.0090.00916.41
7.3.160.0130.00316.45
7.3.120.0090.00614.84
7.3.110.0100.00714.64
7.3.100.0000.01514.86
7.3.90.0000.00914.67
7.3.80.0040.00414.94
7.3.70.0040.00414.61
7.3.60.0070.00414.64
7.3.50.0030.01114.61
7.3.40.0000.01214.86
7.3.30.0060.00314.84
7.3.20.0070.01016.57
7.3.10.0110.00416.46
7.3.00.0040.01216.68
7.2.330.0120.00616.75
7.2.320.0100.00716.44
7.2.310.0070.01016.63
7.2.300.0090.00816.63
7.2.290.0060.00916.59
7.2.250.0070.01115.04
7.2.240.0060.01314.81
7.2.230.0000.01614.71
7.2.220.0030.01014.79
7.2.210.0070.00715.22
7.2.200.0090.00314.89
7.2.190.0070.01014.91
7.2.180.0030.01114.86
7.2.170.0060.00614.65
7.2.110.0190.00316.50
7.2.60.0100.00317.02
7.2.00.0030.00619.34
7.1.330.0060.00915.91
7.1.320.0030.01015.83
7.1.310.0120.00315.93
7.1.300.0090.00615.79
7.1.290.0030.00915.87
7.1.280.0100.00015.91
7.1.270.0000.01315.38
7.1.260.0060.00615.79
7.1.200.0030.00615.82
7.1.100.0120.00017.84
7.1.70.0000.00917.07
7.1.60.0040.02119.27
7.1.50.0160.00616.77
7.1.00.0030.07322.44
7.0.200.0230.01015.03
7.0.60.0030.07321.59
7.0.50.0070.06717.88
7.0.40.0000.05020.23
7.0.30.0200.04720.17
7.0.20.0230.03320.06
7.0.10.0170.08320.09
7.0.00.0100.06720.07
5.6.280.0030.05020.91
5.6.210.0100.03720.49
5.6.200.0030.04018.25
5.6.190.0070.08720.55
5.6.180.0230.04720.63
5.6.170.0270.03320.51
5.6.160.0070.08020.39
5.6.150.0030.07718.23
5.6.140.0070.07718.21
5.6.130.0130.07318.19
5.6.120.0070.09021.02
5.6.110.0100.08321.00
5.6.100.0100.08321.04
5.6.90.0000.04321.02
5.6.80.0100.08320.41
5.5.350.0270.08020.38
5.5.340.0030.04318.02
5.5.330.0030.04720.13
5.5.320.0170.04320.35
5.5.310.0430.06320.27
5.5.300.0070.07317.95
5.5.290.0030.08017.94
5.5.280.0030.04020.88
5.5.270.0130.08720.79
5.5.260.0070.08320.76
5.5.250.0070.07320.70
5.5.240.0130.07320.15

preferences:
44.42 ms | 400 KiB | 5 Q