3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function t() { $f = function(){ var_dump($this); }; $f(); } } $a = new Test(); $a->t();

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.0150.00616.63
8.3.60.0120.00318.55
8.3.50.0130.00719.95
8.3.40.0100.00718.73
8.3.30.0040.01118.54
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.180.0060.00925.92
8.2.170.0200.00019.09
8.2.160.0060.01122.96
8.2.150.0080.00025.66
8.2.140.0070.01024.66
8.2.130.0090.00026.16
8.2.120.0070.00026.16
8.2.110.0110.01122.16
8.2.100.0030.01017.72
8.2.90.0030.00519.64
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0020.00518.22
8.2.30.0000.00917.98
8.2.20.0040.00420.54
8.2.10.0080.00017.71
8.2.00.0040.00419.25
8.1.280.0070.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0160.00023.97
8.1.230.0080.00420.73
8.1.220.0040.00417.76
8.1.210.0000.00818.86
8.1.200.0100.00017.23
8.1.190.0030.00617.10
8.1.180.0050.00318.10
8.1.170.0000.00818.46
8.1.160.0050.00218.88
8.1.150.0070.00418.54
8.1.140.0040.00417.45
8.1.130.0000.00718.88
8.1.120.0000.00817.30
8.1.110.0070.00017.43
8.1.100.0040.00417.49
8.1.90.0050.00317.45
8.1.80.0000.01117.45
8.1.70.0000.00717.50
8.1.60.0040.00417.46
8.1.50.0000.00917.54
8.1.40.0050.00317.52
8.1.30.0060.00317.64
8.1.20.0050.00217.61
8.1.10.0040.00417.48
8.1.00.0110.00017.45
8.0.300.0000.00920.04
8.0.290.0080.00016.63
8.0.280.0030.00318.34
8.0.270.0030.00316.74
8.0.260.0080.00018.38
8.0.250.0000.00716.87
8.0.240.0000.00716.90
8.0.230.0030.00316.88
8.0.220.0000.00716.76
8.0.210.0040.00416.68
8.0.200.0000.00716.87
8.0.190.0030.00516.89
8.0.180.0040.00416.91
8.0.170.0060.00316.89
8.0.160.0040.00416.79
8.0.150.0000.00716.70
8.0.140.0000.00716.89
8.0.130.0050.00516.71
8.0.120.0190.00416.84
8.0.110.0160.00416.86
8.0.100.0130.00816.80
8.0.90.0170.00416.86
8.0.80.0160.00616.75
8.0.70.0150.00716.75
8.0.60.0180.00416.84
8.0.50.0200.00316.78
8.0.30.0170.00716.79
8.0.20.0140.00916.82
8.0.10.0170.00616.96
8.0.00.0060.00617.05
7.4.330.0020.00215.55
7.4.320.0030.00316.61
7.4.300.0030.00316.59
7.4.290.0040.00416.50
7.4.280.0000.00716.53
7.4.270.0050.00316.53
7.4.260.0110.00016.44
7.4.250.0180.00616.44
7.4.240.0270.00016.36
7.4.230.0250.00016.51
7.4.220.0220.00016.54
7.4.210.0140.00616.56
7.4.200.0170.00416.38
7.4.190.0210.00016.55
7.4.180.0200.00016.54
7.4.160.0070.01416.49
7.4.150.0190.00316.48
7.4.140.0150.00516.40
7.4.130.0130.00716.42
7.4.120.0170.00316.38
7.4.110.0160.00416.32
7.4.100.0150.00516.49
7.4.90.0160.00516.47
7.4.80.0150.00716.34
7.4.70.0140.00616.26
7.4.60.0120.00816.41
7.4.50.0090.01216.21
7.4.40.0240.00016.28
7.4.30.0140.00916.39
7.4.20.0150.00616.27
7.4.10.0220.00016.49
7.4.00.0160.00516.41
7.3.330.0220.00016.30
7.3.320.0190.00416.07
7.3.310.0130.01016.13
7.3.300.0180.00916.34
7.3.290.0210.00416.27
7.3.280.0170.00416.27
7.3.270.0120.00916.28
7.3.260.0160.00616.15
7.3.250.0190.00316.27
7.3.240.0160.00616.08
7.3.230.0090.01316.29
7.3.220.0170.00416.18
7.3.210.0200.00016.20
7.3.200.0180.00316.07
7.3.190.0150.00616.15
7.3.180.0140.00515.95
7.3.170.0150.00616.07
7.3.160.0160.00716.22
7.3.150.0170.00616.14
7.3.140.0130.01016.10
7.3.130.0220.00316.25
7.3.120.0160.00316.09
7.3.110.0140.00616.17
7.3.100.0140.00715.97
7.3.90.0110.00716.29
7.3.80.0090.00916.16
7.3.70.0050.00516.02
7.3.60.0090.00316.11
7.3.50.0040.00716.02
7.3.40.0100.00316.08
7.3.30.0040.00816.28
7.3.20.0060.00617.55
7.3.10.0040.00517.93
7.3.00.0050.00518.08

preferences:
56.51 ms | 401 KiB | 5 Q