3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __construct() { echo "FIRST<br>"; } } class b extends a { function test() { global $a; var_dump( $a ); } public function __construct() { $this->test(); echo "SECOND"; } } function inst() { static $a; $a = new a(); } inst(); $b = new b();

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.0120.00318.18
8.3.60.0130.00616.50
8.3.50.0130.00617.13
8.3.40.0090.00618.66
8.3.30.0110.00418.67
8.3.20.0070.00021.94
8.3.10.0040.00423.60
8.3.00.0000.00817.80
8.2.180.0110.00418.18
8.2.170.0140.00722.96
8.2.160.0170.00020.55
8.2.150.0100.00024.18
8.2.140.0090.00024.66
8.2.130.0050.00320.56
8.2.120.0050.00226.35
8.2.110.0060.00320.89
8.2.100.0110.00617.70
8.2.90.0000.00819.11
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0060.00317.89
8.2.50.0000.00818.10
8.2.40.0080.00020.34
8.2.30.0000.00820.98
8.2.20.0040.00417.94
8.2.10.0060.00318.13
8.2.00.0000.00817.97
8.1.280.0180.00425.92
8.1.270.0190.00018.88
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0040.00421.01
8.1.230.0040.00722.14
8.1.220.0030.00617.74
8.1.210.0000.01018.77
8.1.200.0100.00317.35
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0030.00618.65
8.1.160.0030.00518.93
8.1.150.0000.00820.64
8.1.140.0000.00819.64
8.1.130.0030.00318.88
8.1.120.0040.00417.36
8.1.110.0040.00417.45
8.1.100.0030.00517.36
8.1.90.0000.00717.43
8.1.80.0040.00417.44
8.1.70.0000.00817.40
8.1.60.0040.00417.61
8.1.50.0030.00617.55
8.1.40.0030.00617.53
8.1.30.0000.00817.72
8.1.20.0000.00817.55
8.1.10.0000.00717.62
8.1.00.0000.00717.46
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0080.00018.36
8.0.270.0030.00317.29
8.0.260.0000.00718.88
8.0.250.0030.00616.89
8.0.240.0060.00316.93
8.0.230.0040.00216.89
8.0.220.0030.00316.85
8.0.210.0030.00316.87
8.0.200.0000.00616.83
8.0.190.0030.00616.92
8.0.180.0070.00016.89
8.0.170.0000.00716.95
8.0.160.0030.00316.96
8.0.150.0040.00416.79
8.0.140.0030.00716.76
8.0.130.0000.00613.33
8.0.120.0040.00416.84
8.0.110.0030.00316.92
8.0.100.0070.00016.95
8.0.90.0050.00316.94
8.0.80.0120.00616.86
8.0.70.0090.00016.86
8.0.60.0000.00716.78
8.0.50.0040.00416.79
8.0.30.0070.01117.14
8.0.20.0060.01417.40
8.0.10.0040.00416.82
8.0.00.0060.01216.87
7.4.330.0000.00516.79
7.4.320.0030.00316.55
7.4.300.0060.00016.46
7.4.290.0000.00916.63
7.4.280.0000.00816.51
7.4.270.0090.00016.52
7.4.260.0050.00216.58
7.4.250.0070.00016.55
7.4.240.0080.00016.50
7.4.230.0040.00416.68
7.4.220.0120.01716.42
7.4.210.0110.00316.47
7.4.200.0040.00416.44
7.4.160.0090.00716.55
7.4.150.0130.00417.40
7.4.140.0120.01217.86
7.4.130.0110.00716.54
7.4.120.0120.00616.50
7.4.110.0100.01016.37
7.4.100.0100.01116.49
7.4.90.0130.00316.37
7.4.80.0090.01219.39
7.4.70.0030.01316.61
7.4.60.0140.00316.59
7.4.50.0040.01216.52
7.4.40.0100.00716.57
7.4.30.0060.01716.53
7.4.00.0070.01015.18
7.3.330.0060.00013.33
7.3.320.0030.00313.31
7.3.310.0020.00516.29
7.3.300.0030.00316.30
7.3.290.0070.01016.29
7.3.280.0070.01016.29
7.3.270.0080.00917.40
7.3.260.0170.00616.49
7.3.250.0160.00716.45
7.3.240.0080.00816.32
7.3.230.0090.00916.42
7.3.210.0070.01016.43
7.3.200.0160.00316.30
7.3.190.0090.00916.46
7.3.180.0120.00916.23
7.3.170.0040.01116.37
7.3.160.0090.00616.30
7.2.330.0090.00916.68
7.2.320.0070.01016.66
7.2.310.0070.01016.43
7.2.300.0100.00716.52
7.2.290.0000.02316.41
7.2.60.0030.01016.86
7.2.50.0000.01316.76
7.1.200.0060.00615.77
7.1.70.0070.01417.16
7.1.60.0930.02033.15
7.1.50.0730.01032.88
7.1.40.0570.01732.52
7.1.30.1370.01032.75
7.1.20.0830.02032.71
7.1.10.0430.01314.48
7.1.00.0800.01314.90
7.0.200.0930.02014.71
7.0.190.0930.01014.89
7.0.180.0570.00714.42
7.0.170.1230.01014.32
7.0.160.0730.01314.33
7.0.150.0530.00314.48
7.0.140.0530.01714.37
7.0.130.0530.01014.41
7.0.120.0600.00714.77
7.0.110.0570.01314.64
7.0.100.0530.00714.50
7.0.90.0470.01314.47
7.0.80.0600.01014.64
7.0.70.0530.01314.52
7.0.60.0530.01314.45
7.0.50.0700.01014.67
7.0.40.0630.00314.56
7.0.30.0600.01314.58
7.0.20.0870.00714.76
7.0.10.0570.01714.66
7.0.00.0730.01314.64

preferences:
71.08 ms | 401 KiB | 5 Q