3v4l.org

run code in 300+ PHP versions simultaneously
<?hh // strict class Foo { public function __construct() { $args = func_get_args(); foreach ($args as $i => $j) { $this->$i = $j; } } } $foo = new Foo(["a" => "b"]); var_dump($foo);

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.0120.00918.32
8.3.60.0110.00418.43
8.3.50.0110.01120.98
8.3.40.0070.01118.59
8.3.30.0070.00718.96
8.3.20.0030.00520.21
8.3.10.0040.00423.52
8.3.00.0000.00919.16
8.2.180.0070.00718.30
8.2.170.0070.00722.96
8.2.160.0140.00020.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00322.24
8.2.110.0030.00622.20
8.2.100.0040.00817.63
8.2.90.0050.00219.22
8.2.80.0040.00417.97
8.2.70.0070.00317.50
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0000.00919.88
8.2.30.0060.00317.89
8.2.20.0040.00417.54
8.2.10.0080.00017.91
8.2.00.0000.00717.64
8.1.280.0120.00925.92
8.1.270.0030.00623.79
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0120.00017.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01017.10
8.1.190.0030.00517.11
8.1.180.0000.00818.10
8.1.170.0000.00818.58
8.1.160.0030.00321.86
8.1.150.0070.00018.70
8.1.140.0070.00017.37
8.1.130.0030.00317.75
8.1.120.0000.00817.18
8.1.110.0040.00417.34
8.1.100.0070.00017.32
8.1.90.0050.00317.37
8.1.80.0030.00617.26
8.1.70.0030.00317.17
8.1.60.0030.00617.46
8.1.50.0030.00517.29
8.1.40.0050.00217.36
8.1.30.0040.00417.44
8.1.20.0000.00717.57
8.1.10.0030.00617.30
8.1.00.0030.00617.38
8.0.300.0060.00618.77
8.0.290.0070.00016.63
8.0.280.0040.00418.36
8.0.270.0030.00317.18
8.0.260.0000.00717.08
8.0.250.0030.00316.83
8.0.240.0070.00016.73
8.0.230.0030.00616.87
8.0.220.0000.00616.64
8.0.210.0070.00016.74
8.0.200.0070.00016.84
8.0.190.0040.00416.68
8.0.180.0000.00816.83
8.0.170.0040.00416.69
8.0.160.0000.00816.66
8.0.150.0070.00016.68
8.0.140.0080.00016.76
8.0.130.0030.00313.34
8.0.120.0000.00816.65
8.0.110.0000.00816.59
8.0.100.0030.00316.61
8.0.90.0000.00716.72
8.0.80.0060.00916.77
8.0.70.0070.00016.80
8.0.60.0000.00716.55
8.0.50.0040.00416.61
8.0.30.0080.01116.92
8.0.20.0100.01017.40
8.0.10.0000.00716.92
8.0.00.0080.01116.56
7.4.330.0000.00415.02
7.4.320.0030.00316.34
7.4.300.0070.00016.34
7.4.290.0000.00716.43
7.4.280.0000.00716.25
7.4.270.0000.00716.50
7.4.260.0000.00716.44
7.4.250.0000.00716.45
7.4.240.0060.00116.29
7.4.230.0030.00316.46
7.4.220.0150.00316.40
7.4.210.0120.00316.43
7.4.200.0030.00316.16
7.4.160.0090.00616.46
7.4.150.0130.01017.40
7.4.140.0100.01317.86
7.4.130.0080.00816.28
7.4.120.0090.01016.46
7.4.110.0240.00016.43
7.4.100.0190.00016.32
7.4.90.0100.00616.58
7.4.80.0080.00819.39
7.4.70.0100.00716.50
7.4.60.0090.00616.39
7.4.50.0060.00316.20
7.4.40.0030.01316.30
7.4.30.0030.01816.28
7.3.330.0000.00513.28
7.3.320.0050.00013.00
7.3.310.0030.00316.17
7.3.300.0060.00015.98
7.3.290.0120.00416.18
7.3.280.0090.00716.18
7.3.270.0100.00717.40
7.3.260.0080.00816.07
7.3.250.0090.01016.32
7.3.240.0170.00016.45
7.3.230.0180.00416.39
7.3.210.0060.00916.29
7.3.200.0160.00619.39
7.3.190.0070.01016.35
7.3.180.0040.01216.41
7.3.170.0060.01116.27
7.3.160.0040.01216.34
7.2.330.0170.00016.17
7.2.320.0100.01116.67
7.2.310.0100.00616.34
7.2.300.0100.01016.51
7.2.290.0070.01516.54
5.4.340.0020.04012.01
5.4.320.0070.04612.45
5.4.310.0050.04112.45
5.4.300.0050.04212.45
5.4.290.0070.04312.45
5.4.280.0050.03912.35
5.4.270.0150.03412.34
5.4.260.0100.05012.35
5.4.250.0060.03912.34
5.4.240.0050.04012.34
5.4.230.0080.03712.34
5.4.220.0060.03912.34
5.4.210.0060.03512.34
5.4.200.0070.04012.34
5.4.190.0070.03712.33
5.4.180.0070.03612.33
5.4.170.0110.04012.34
5.4.160.0060.03912.34
5.4.150.0060.04012.34
5.4.140.0040.04012.02
5.4.130.0020.03912.01
5.4.120.0070.03511.97
5.4.110.0090.03311.96
5.4.100.0060.03811.96
5.4.90.0050.03711.96
5.4.80.0060.03711.96
5.4.70.0070.03311.96
5.4.60.0120.04511.96
5.4.50.0090.04811.96
5.4.40.0040.04711.95
5.4.30.0040.03811.95
5.4.20.0080.03811.95
5.4.10.0070.04111.95
5.4.00.0060.03611.43

preferences:
51.81 ms | 401 KiB | 5 Q