3v4l.org

run code in 300+ PHP versions simultaneously
<?php const fuN = 1; new test; class test{ public function __construct() { fuN; $this->fun(); // prints test->fun $this->fuN(); //Call to undefined method test::fuN() fuN; // coment this out for : Uncaught Error: Undefined constant "fuN" } function fun(){ echo "<p>" . __CLASS__ . "->" . __FUNCTION__ . "</p>"; } }

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.0170.00316.63
8.3.50.0100.00316.36
8.3.40.0160.00618.59
8.3.30.0180.00418.40
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0060.00326.16
8.2.180.0150.00725.92
8.2.170.0040.01118.77
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0090.00020.99
8.2.110.0060.00322.25
8.2.100.0080.00317.55
8.2.90.0050.00319.05
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0000.00819.88
8.2.30.0090.00017.95
8.2.20.0040.00417.88
8.2.10.0020.00519.18
8.2.00.0050.00319.16
8.1.280.0090.00625.92
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00022.05
8.1.230.0090.00317.70
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0100.00017.23
8.1.190.0030.00617.22
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0070.00018.74
8.1.150.0070.00018.82
8.1.140.0050.00218.79
8.1.130.0060.00317.33
8.1.120.0060.00317.30
8.1.110.0000.00817.33
8.1.100.0000.00817.36
8.1.90.0050.00317.27
8.1.80.0030.00617.41
8.1.70.0030.00317.30
8.1.60.0040.00417.52
8.1.50.0000.00817.40
8.1.40.0040.00417.41
8.1.30.0040.00417.59
8.1.20.0030.00517.63
8.1.10.0000.00717.41
8.1.00.0040.00417.36
8.0.300.0060.00318.77
8.0.290.0090.00016.63
8.0.280.0070.00018.36
8.0.270.0030.00718.01
8.0.260.0050.00316.74
8.0.250.0030.00416.89
8.0.240.0000.00616.96
8.0.230.0030.00316.81
8.0.220.0030.00316.73
8.0.210.0000.00816.71
8.0.200.0000.00616.88
8.0.190.0090.00016.88
8.0.180.0030.00516.84
8.0.170.0060.00316.89
8.0.160.0000.00716.84
8.0.150.0000.00716.81
8.0.140.0050.00216.78
8.0.130.0060.00013.33
8.0.120.0080.00016.83
8.0.110.0040.00416.71
8.0.100.0000.00716.69
8.0.90.0040.00416.87
8.0.80.0080.00716.85
8.0.70.0000.00816.78
8.0.60.0040.00416.87
8.0.50.0040.00416.66
8.0.30.0080.00616.76
8.0.20.0110.00316.91
8.0.10.0000.01417.01
8.0.00.0000.01517.00
7.4.330.0020.00215.55
7.4.320.0060.00016.34
7.4.300.0060.00016.54
7.4.290.0050.00216.40
7.4.280.0040.00416.43
7.4.270.0030.00316.54
7.4.260.0030.00313.23
7.4.250.0030.00316.45
7.4.240.0030.00316.37
7.4.230.0030.00316.61
7.4.220.0020.00516.46
7.4.210.0040.01116.41
7.4.200.0030.00316.54
7.4.160.0100.00316.45
7.4.150.0070.00716.39
7.4.140.0070.00716.41
7.4.130.0070.01116.33
7.4.120.0070.00716.34
7.4.110.0030.01016.31
7.4.100.0060.00916.36
7.4.90.0030.01016.37
7.4.80.0070.00716.46
7.4.70.0100.00316.39
7.4.60.0000.01316.47
7.4.50.0030.00916.30
7.4.40.0060.00616.37
7.4.30.0030.01016.26
7.4.20.0000.01316.44
7.4.10.0040.00816.34
7.4.00.0070.00716.36
7.3.330.0040.00416.11
7.3.320.0050.00013.32
7.3.310.0080.00016.32
7.3.300.0070.00016.16
7.3.290.0100.00716.31
7.3.280.0110.00416.29
7.3.270.0100.00316.26
7.3.260.0060.00616.27
7.3.250.0090.00416.20
7.3.240.0030.01016.33
7.3.230.0030.01016.28
7.3.220.0100.00316.18
7.3.210.0070.00616.22
7.3.200.0030.01016.24
7.3.190.0030.01016.24
7.3.180.0040.00816.24
7.3.170.0060.00616.19
7.3.160.0100.00316.19
7.3.150.0030.01316.23
7.3.140.0130.00016.22
7.3.130.0040.00916.22
7.3.120.0070.00716.23
7.3.110.0090.00316.14
7.3.100.0140.00016.16
7.3.90.0030.01016.54
7.3.80.0060.00616.23
7.3.70.0100.00316.20
7.3.60.0030.00916.30
7.3.50.0120.00316.39
7.3.40.0030.00916.24
7.3.30.0060.00616.34
7.3.20.0040.00916.39
7.3.10.0060.00616.37
7.3.00.0030.00916.31

preferences:
67.55 ms | 400 KiB | 5 Q