3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { 'foo' => ['a', 'b', 'c']; } }

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)
5.4.350.0080.03712.04
5.4.340.0070.03612.03
5.4.320.0070.05812.51
5.4.310.0160.05112.51
5.4.300.0110.04612.52
5.4.290.0160.05512.51
5.4.280.0120.06412.41
5.4.270.0140.04512.41
5.4.260.0120.04112.41
5.4.250.0160.03612.41
5.4.240.0100.05212.41
5.4.230.0120.04312.40
5.4.220.0080.04912.40
5.4.210.0050.04312.40
5.4.200.0090.04112.40
5.4.190.0070.03512.39
5.4.180.0090.04412.39
5.4.170.0070.05212.41
5.4.160.0060.03712.40
5.4.150.0060.03512.40
5.4.140.0060.03912.09
5.4.130.0050.03912.07
5.4.120.0070.03912.04
5.4.110.0100.03612.03
5.4.100.0130.02912.03
5.4.90.0060.03712.03
5.4.80.0070.04012.04
5.4.70.0070.04512.03
5.4.60.0060.04912.02
5.4.50.0100.04612.03
5.4.40.0100.04612.02
5.4.30.0110.04412.01
5.4.20.0130.04512.01
5.4.10.0100.04712.01
5.4.00.0080.04411.50
5.3.290.0120.05112.80
5.3.280.0080.04712.71
5.3.270.0080.04512.72
5.3.260.0100.03712.72
5.3.250.0080.03812.71
5.3.240.0100.04212.72
5.3.230.0120.04612.71
5.3.220.0100.04012.68
5.3.210.0100.04212.68
5.3.200.0080.04012.68
5.3.190.0110.06112.68
5.3.180.0050.04112.67
5.3.170.0080.04312.66
5.3.160.0050.04412.68
5.3.150.0070.04112.67
5.3.140.0110.03712.66
5.3.130.0060.04012.66
5.3.120.0060.04212.65
5.3.110.0120.04912.66
5.3.100.0090.04712.13
5.3.90.0080.03812.10
5.3.80.0100.04812.10
5.3.70.0130.04812.09
5.3.60.0140.07812.08
5.3.50.0100.03512.03
5.3.40.0080.04712.02
5.3.30.0070.03911.98
5.3.20.0150.04011.76
5.3.10.0090.05611.73
5.3.00.0100.06911.72
5.2.170.0060.0299.21
5.2.160.0050.0309.21
5.2.150.0050.0339.21
5.2.140.0030.0339.21
5.2.130.0060.0349.18
5.2.120.0160.0359.17
5.2.110.0110.0329.18
5.2.100.0070.0329.18
5.2.90.0040.0319.18
5.2.80.0070.0309.18
5.2.70.0090.0289.17
5.2.60.0060.0319.13
5.2.50.0110.0259.10
5.2.40.0020.0319.08
5.2.30.0040.0329.05
5.2.20.0050.0339.04
5.2.10.0070.0268.94
5.2.00.0060.0328.81
5.1.60.0060.0238.09
5.1.50.0050.0238.09
5.1.40.0060.0238.07
5.1.30.0030.0278.42
5.1.20.0080.0258.44
5.1.10.0110.0588.17
5.1.00.0040.0488.17
5.0.50.0020.0416.64
5.0.40.0070.0246.50
5.0.30.0070.0326.31
5.0.20.0040.0206.28
5.0.10.0030.0216.25
5.0.00.0040.0336.25
4.4.90.0010.0174.78
4.4.80.0030.0164.76
4.4.70.0040.0184.75
4.4.60.0040.0154.76
4.4.50.0010.0214.77
4.4.40.0040.0264.71
4.4.30.0020.0184.76
4.4.20.0040.0174.84
4.4.10.0060.0224.85
4.4.00.0060.0314.76
4.3.110.0050.0214.67
4.3.100.0060.0204.66
4.3.90.0050.0194.64
4.3.80.0060.0294.59
4.3.70.0070.0184.63
4.3.60.0040.0204.63
4.3.50.0050.0194.63
4.3.40.0050.0294.53
4.3.30.0040.0153.30
4.3.20.0020.0173.28
4.3.10.0040.0143.23
4.3.00.0200.0236.76

preferences:
148.7 ms | 1394 KiB | 7 Q