3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $resource = fopen('php://stdout', 'w'); // $callable = function() {}; $array = array(1,2,3); class C { public function M(resource $r) { var_dump($r); } } $c = new C(); var_dump($c->M($resource));

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.110.0070.00316.75
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0030.00618.30
8.3.70.0150.00618.43
8.3.60.0130.00616.63
8.3.50.0110.00318.26
8.3.40.0120.00318.79
8.3.30.0120.00318.84
8.3.20.0040.00421.95
8.3.10.0050.00321.85
8.3.00.0040.00417.80
8.2.230.0030.00620.94
8.2.220.0100.00037.54
8.2.210.0040.00426.77
8.2.200.0090.00016.88
8.2.190.0100.00616.63
8.2.180.0000.01918.26
8.2.170.0070.00722.96
8.2.160.0070.00722.11
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00419.33
8.2.120.0030.00626.35
8.2.110.0060.00320.38
8.2.100.0070.00417.91
8.2.90.0040.00417.83
8.2.80.0040.00419.36
8.2.70.0040.00417.80
8.2.60.0040.00417.92
8.2.50.0040.00418.10
8.2.40.0070.00020.42
8.2.30.0040.00419.28
8.2.20.0050.00317.99
8.2.10.0040.00418.15
8.2.00.0040.00418.05
8.1.290.0070.00330.84
8.1.280.0130.00625.92
8.1.270.0000.00823.90
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0000.00920.89
8.1.230.0080.00320.89
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.36
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.82
8.1.160.0050.00218.74
8.1.150.0000.00818.96
8.1.140.0070.00017.62
8.1.130.0000.00818.93
8.1.120.0040.00417.44
8.1.110.0040.00417.40
8.1.100.0040.00417.40
8.1.90.0000.00817.42
8.1.80.0040.00717.42
8.1.70.0030.00617.38
8.1.60.0000.00817.61
8.1.50.0040.00417.40
8.1.40.0030.00617.58
8.1.30.0000.00917.64
8.1.20.0040.00417.51
8.1.10.0050.00317.59
8.1.00.0000.01017.54
8.0.300.0040.00420.10
8.0.290.0090.00016.75
8.0.280.0030.00318.31
8.0.270.0030.00317.16
8.0.260.0030.00319.06
8.0.250.0040.00416.98
8.0.240.0070.00016.97
8.0.230.0050.00217.05
8.0.220.0060.00316.85
8.0.210.0030.00316.84
8.0.200.0000.00716.90
8.0.190.0000.00717.01
8.0.180.0000.00717.03
8.0.170.0060.00316.85
8.0.160.0030.00516.84
8.0.150.0040.00416.87
8.0.140.0000.00716.89
8.0.130.0050.00313.37
8.0.120.0000.00716.80
8.0.110.0030.00516.98
8.0.100.0070.00016.95
8.0.90.0030.00316.88
8.0.80.0040.01116.94
8.0.70.0000.00816.75
8.0.60.0000.00816.82
8.0.50.0050.00316.74
8.0.30.0100.00817.01
8.0.20.0120.00917.40
8.0.10.0040.00417.07
8.0.00.0140.00616.71
7.4.330.0050.00015.55
7.4.320.0060.00016.54
7.4.300.0030.00416.54
7.4.290.0050.00316.41
7.4.280.0070.00016.62
7.4.270.0140.00016.64
7.4.260.0030.00316.60
7.4.250.0070.00016.53
7.4.240.0030.00316.59
7.4.230.0030.00316.63
7.4.220.0040.00416.68
7.4.210.0050.01016.47
7.4.200.0030.00316.68
7.4.160.0080.01116.61
7.4.140.0090.00917.86
7.4.130.0170.00316.39
7.4.120.0140.00616.47
7.3.330.0000.00513.43
7.3.320.0000.00613.34
7.3.310.0000.00716.32
7.3.300.0030.00316.40
7.3.290.0030.00316.38
7.3.280.0060.00816.41
7.3.260.0110.00716.35
7.3.240.0070.01016.45
7.2.40.0460.01517.98
7.1.00.0440.01014.83

preferences:
29.13 ms | 403 KiB | 5 Q