3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function test(array $test) { print_r($test); } } Test::test('test');

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.01018.31
8.3.50.0100.00922.82
8.3.40.0110.00418.71
8.3.30.0070.00719.04
8.3.20.0080.00020.16
8.3.10.0080.00020.70
8.3.00.0080.00019.38
8.2.180.0090.00918.06
8.2.170.0030.01422.96
8.2.160.0100.00320.53
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.03
8.2.110.0060.00322.11
8.2.100.0050.00518.76
8.1.280.0100.01325.92
8.1.270.0000.00822.20
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0060.00318.46
8.1.230.0030.00618.48
5.4.320.0100.03912.51
5.4.310.0080.03812.51
5.4.300.0080.03812.51
5.4.290.0040.03912.51
5.4.280.0070.03412.41
5.4.270.0050.03612.40
5.4.260.0070.04012.41
5.4.250.0050.04812.41
5.4.240.0090.04112.40
5.4.230.0050.03912.40
5.4.220.0060.04912.40
5.4.210.0130.03412.39
5.4.200.0050.03912.40
5.4.190.0070.03412.39
5.4.180.0050.03612.39
5.4.170.0060.03512.40
5.4.160.0040.03712.40
5.4.150.0080.03912.40
5.4.140.0090.03712.08
5.4.130.0100.03912.07
5.4.120.0080.03912.03
5.4.110.0080.03712.02
5.4.100.0040.04012.02
5.4.90.0080.03812.02
5.4.80.0060.04812.02
5.4.70.0100.04212.02
5.4.60.0080.04012.02
5.4.50.0040.03812.02
5.4.40.0070.03712.01
5.4.30.0050.04112.00
5.4.20.0090.03312.00
5.4.10.0100.03412.01
5.4.00.0060.03311.49
5.3.290.0130.03712.80
5.3.280.0090.04212.71
5.3.270.0060.04212.72
5.3.260.0090.04012.72
5.3.250.0060.04112.72
5.3.240.0060.03812.72
5.3.230.0080.04012.71
5.3.220.0100.03312.68
5.3.210.0050.04112.68
5.3.200.0070.04312.68
5.3.190.0070.04012.68
5.3.180.0120.03612.67
5.3.170.0080.03812.67
5.3.160.0050.04012.68
5.3.150.0080.04212.67
5.3.140.0070.04012.66
5.3.130.0050.04912.66
5.3.120.0060.04012.66
5.3.110.0130.04012.65
5.3.100.0080.03512.12
5.3.90.0060.03612.10
5.3.80.0070.03712.09
5.3.70.0110.03412.09
5.3.60.0090.03412.08
5.3.50.0050.03912.03
5.3.40.0080.03512.03
5.3.30.0100.03311.98
5.3.20.0060.03511.76
5.3.10.0050.03611.73
5.3.00.0060.03811.71
5.2.170.0050.0339.22
5.2.160.0030.0319.22
5.2.150.0060.0289.22
5.2.140.0030.0349.21
5.2.130.0080.0299.18
5.2.120.0070.0269.18
5.2.110.0040.0309.18
5.2.100.0070.0269.18
5.2.90.0080.0319.17
5.2.80.0050.0379.17
5.2.70.0100.0359.17
5.2.60.0030.0319.13
5.2.50.0080.0359.10
5.2.40.0060.0369.07
5.2.30.0080.0369.04
5.2.20.0050.0329.04
5.2.10.0060.0358.95
5.2.00.0060.0388.80
5.1.60.0050.0238.09
5.1.50.0060.0318.08
5.1.40.0050.0248.07
5.1.30.0040.0318.41
5.1.20.0040.0278.44
5.1.10.0030.0278.17
5.1.00.0050.0248.17
5.0.50.0080.0176.64
5.0.40.0070.0216.50
5.0.30.0030.0326.31
5.0.20.0030.0206.28
5.0.10.0040.0196.26
5.0.00.0040.0326.25
4.4.90.0010.0224.78
4.4.80.0020.0164.76
4.4.70.0030.0164.76
4.4.60.0040.0204.75
4.4.50.0060.0234.77
4.4.40.0030.0324.71
4.4.30.0020.0234.76
4.4.20.0010.0174.84
4.4.10.0070.0154.85
4.4.00.0030.0254.76
4.3.110.0000.0194.66
4.3.100.0020.0184.66
4.3.90.0040.0154.64
4.3.80.0050.0234.58
4.3.70.0050.0174.63
4.3.60.0050.0194.63
4.3.50.0080.0114.63
4.3.40.0050.0234.54
4.3.30.0030.0203.30
4.3.20.0040.0153.28
4.3.10.0030.0183.23
4.3.00.0200.01718.16

preferences:
31.24 ms | 401 KiB | 5 Q