3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $message; public function __construct($msg) { $this->message = $msg; } public function test() { if (isset($this)) { $this->show(); } else { $o = new self('bar'); $o->show(); } } public function show() { echo 'show: ', $this->message, "\n"; } } $o = new A('foo'); $o->test(); A::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.70.0030.01418.56
8.3.60.0110.00718.68
8.3.50.0150.00422.12
8.3.40.0190.00319.09
8.3.30.0000.01518.96
8.3.20.0050.00321.98
8.3.10.0080.00021.94
8.3.00.0040.00422.58
8.2.190.0090.00616.58
8.2.180.0170.00316.63
8.2.170.0180.00322.96
8.2.160.0030.01020.45
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00220.37
8.2.120.0070.00026.35
8.2.110.0030.00722.25
8.2.100.0080.00418.04
8.2.90.0040.00418.09
8.2.80.0000.00819.14
8.2.70.0040.00417.80
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0000.00719.47
8.2.30.0040.00419.12
8.2.20.0000.00718.07
8.2.10.0050.00217.91
8.2.00.0030.00518.11
8.1.280.0110.01525.92
8.1.270.0030.00522.17
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.20
8.1.230.0110.00021.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0090.00018.50
8.1.160.0040.00418.92
8.1.150.0040.00418.61
8.1.140.0070.00419.55
8.1.130.0000.00717.26
8.1.120.0000.00717.43
8.1.110.0000.00717.31
8.1.100.0000.00817.45
8.1.90.0070.00017.42
8.1.80.0040.00417.42
8.1.70.0030.00317.38
8.1.60.0120.00017.58
8.1.50.0040.00417.41
8.1.40.0000.00917.57
8.1.30.0030.00517.54
8.1.20.0040.00417.65
8.1.10.0040.00417.54
8.1.00.0080.00017.54
8.0.300.0040.00420.23
8.0.290.0000.00916.75
8.0.280.0040.00418.35
8.0.270.0000.00718.06
8.0.260.0000.00816.75
8.0.250.0000.00717.04
8.0.240.0040.00417.05
8.0.230.0050.00216.91
8.0.220.0000.00716.81
8.0.210.0000.00716.77
8.0.200.0070.00016.97
8.0.190.0040.00416.98
8.0.180.0030.00516.94
8.0.170.0000.00716.93
8.0.160.0040.00416.78
8.0.150.0070.00016.74
8.0.140.0000.00716.77
8.0.130.0000.00513.27
8.0.120.0080.00016.88
8.0.110.0000.00716.85
8.0.100.0000.00716.68
8.0.90.0070.00016.83
8.0.80.0030.01016.84
8.0.70.0080.00016.82
8.0.60.0070.00016.86
8.0.50.0040.00416.89
8.0.30.0100.00917.01
8.0.20.0100.00917.40
8.0.10.0040.00416.94
8.0.00.0110.00916.81
7.4.330.0050.00015.55
7.4.320.0030.00316.35
7.4.300.0060.00016.58
7.4.290.0030.00316.51
7.4.280.0000.00816.63
7.4.270.0030.00316.59
7.4.260.0000.00816.60
7.4.250.0000.00716.56
7.4.240.0040.00416.36
7.4.230.0000.00716.61
7.4.220.0100.00716.57
7.4.210.0070.01016.45
7.4.200.0030.00316.70
7.4.160.0100.00816.52
7.4.150.0120.00617.40
7.4.140.0090.01317.86
7.4.130.0150.00816.27
7.4.120.0110.00916.56
7.4.110.0120.00616.36
7.4.100.0130.00516.51
7.4.90.0080.00816.56
7.4.80.0080.00819.39
7.4.70.0060.00916.51
7.4.60.0090.01216.47
7.4.50.0090.00716.30
7.4.40.0110.01116.48
7.4.30.0030.01216.38
7.4.00.0050.00915.08
7.3.330.0020.00213.30
7.3.320.0050.00013.28
7.3.310.0000.00816.14
7.3.300.0040.00416.26
7.3.290.0090.00516.27
7.3.280.0110.00816.26
7.3.270.0110.00617.40
7.3.260.0100.00816.35
7.3.240.0070.00916.38
7.3.230.0160.00616.45
7.3.210.0090.00916.38
7.3.200.0110.00716.29
7.3.190.0130.01016.27
7.3.180.0000.01516.40
7.3.170.0170.00016.50
7.3.160.0120.00316.45
7.3.120.0070.01014.80
7.3.110.0040.01514.86
7.3.100.0050.00514.46
7.3.90.0100.00714.84
7.3.80.0030.01014.77
7.3.70.0070.01014.65
7.3.60.0030.00914.83
7.3.50.0060.00614.84
7.3.40.0030.01014.54
7.3.30.0070.00714.46
7.3.20.0000.01716.57
7.3.10.0070.00716.54
7.3.00.0030.01016.69
7.2.330.0100.00716.61
7.2.320.0100.00716.77
7.2.310.0060.01016.62
7.2.300.0090.00716.52
7.2.290.0110.00816.63
7.2.250.0070.01415.14
7.2.240.0080.01115.32
7.2.230.0030.01615.31
7.2.220.0100.00614.79
7.2.210.0000.01515.22
7.2.200.0040.01115.04
7.2.190.0090.00614.71
7.2.180.0070.00714.98
7.2.170.0030.00914.96
7.2.60.0070.00716.62
7.2.00.0080.00819.52
7.1.330.0000.01515.84
7.1.320.0030.00615.61
7.1.310.0030.00715.70
7.1.300.0070.00415.63
7.1.290.0070.00715.68
7.1.280.0100.00315.67
7.1.270.0060.00315.65
7.1.260.0030.00615.33
7.1.200.0060.00615.37
7.1.70.0110.00417.11
7.1.60.0030.00917.19
7.1.50.1030.01332.95
7.1.40.0970.01032.29
7.1.30.1170.02732.32
7.1.20.1270.01732.59
7.1.10.0600.01014.50
7.1.00.0970.00714.72
7.0.200.0040.01816.70
7.0.190.1100.01314.99
7.0.180.0800.00714.34
7.0.170.1370.01314.19
7.0.160.1070.01314.26
7.0.150.0600.01014.30
7.0.140.0700.00714.55
7.0.130.1070.01314.60
7.0.120.0970.01714.63
7.0.110.1100.01014.32
7.0.100.1000.01714.45
7.0.90.0630.01014.54
7.0.80.0570.01714.40
7.0.70.0670.00314.42
7.0.60.0970.01714.41
7.0.50.0800.01314.33
7.0.40.0800.00714.45
7.0.30.0730.01714.49
7.0.20.1370.01014.47
7.0.10.0870.00714.47
7.0.00.1000.00714.43

preferences:
52.12 ms | 401 KiB | 5 Q