3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $test = 5; } $out = (function () : int { return $this->test; })->call(new test); var_dump($out);

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.00718.43
8.3.50.0110.00318.34
8.3.40.0100.00718.54
8.3.30.0120.00318.63
8.3.20.0090.00018.91
8.3.10.0060.00319.35
8.3.00.0070.00723.61
8.2.180.0090.00616.38
8.2.170.0120.00322.96
8.2.160.0000.01420.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00619.72
8.2.120.0070.00026.35
8.2.110.0040.00420.36
8.2.100.0120.00017.91
8.2.90.0080.00017.90
8.2.80.0040.00417.97
8.2.70.0000.00917.93
8.2.60.0000.00717.93
8.2.50.0030.00618.10
8.2.40.0070.00019.34
8.2.30.0000.00719.48
8.2.20.0000.00718.04
8.2.10.0050.00319.76
8.2.00.0070.00019.34
8.1.280.0120.00925.92
8.1.270.0040.00422.14
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00622.46
8.1.230.0070.00422.69
8.1.220.0000.00817.74
8.1.210.0000.00818.87
8.1.200.0060.00317.36
8.1.190.0000.00917.11
8.1.180.0000.00718.10
8.1.170.0000.00818.58
8.1.160.0040.00418.93
8.1.150.0000.00818.88
8.1.140.0000.00717.70
8.1.130.0000.00818.97
8.1.120.0040.00417.47
8.1.110.0070.00017.39
8.1.100.0000.00817.37
8.1.90.0060.00317.36
8.1.80.0080.00017.43
8.1.70.0060.00617.50
8.1.60.0050.00317.59
8.1.50.0040.00417.54
8.1.40.0040.00417.43
8.1.30.0070.00017.67
8.1.20.0070.00017.48
8.1.10.0000.00917.59
8.1.00.0040.00417.53
8.0.300.0070.00019.64
8.0.290.0050.00516.58
8.0.280.0000.00718.29
8.0.270.0070.00017.20
8.0.260.0040.00417.11
8.0.250.0000.00616.85
8.0.240.0000.00716.94
8.0.230.0000.00816.84
8.0.220.0030.00316.71
8.0.210.0000.00816.80
8.0.200.0000.00616.97
8.0.190.0080.00016.98
8.0.180.0090.00016.83
8.0.170.0000.00816.94
8.0.160.0050.00316.94
8.0.150.0000.00816.77
8.0.140.0000.00816.89
8.0.130.0000.00613.34
8.0.120.0000.00716.73
8.0.110.0040.00416.94
8.0.100.0070.00016.82
8.0.90.0000.00716.98
8.0.80.0100.00716.92
8.0.70.0030.00516.89
8.0.60.0040.00416.94
8.0.50.0040.00416.95
8.0.30.0100.00716.92
8.0.20.0090.00917.40
8.0.10.0040.00416.91
8.0.00.0130.00616.64
7.4.330.0000.00515.55
7.4.320.0000.00716.49
7.4.300.0030.00316.44
7.4.290.0030.00316.44
7.4.280.0060.00316.50
7.4.270.0100.00016.50
7.4.260.0040.00216.39
7.4.250.0000.00716.50
7.4.240.0030.00316.58
7.4.230.0000.00716.29
7.4.220.0080.00016.43
7.4.210.0100.00716.66
7.4.200.0000.00716.67
7.4.160.0060.01016.52
7.4.140.0110.00817.86
7.4.130.0070.01016.48
7.4.120.0100.00816.42
7.4.110.0080.01316.45
7.4.100.0130.00316.47
7.4.90.0100.01016.34
7.4.80.0090.00919.39
7.4.70.0090.00916.38
7.4.60.0100.00716.43
7.4.50.0060.00816.47
7.4.40.0080.00816.32
7.3.330.0030.00313.22
7.3.320.0000.00613.22
7.3.310.0070.00016.11
7.3.300.0070.00016.16
7.3.290.0040.00416.29
7.3.280.0070.01116.29
7.3.260.0100.00916.41
7.3.240.0120.00716.37
7.3.230.0140.00416.27
7.3.210.0060.01716.52
7.3.200.0100.00716.35
7.3.190.0060.01216.59
7.3.180.0060.01216.09
7.3.170.0050.01416.35
7.3.160.0090.00816.20
7.2.330.0160.00416.70
7.2.320.0140.00416.53
7.2.310.0090.01216.57
7.2.300.0070.01016.71
7.2.290.0130.01016.34

preferences:
43.03 ms | 401 KiB | 5 Q