3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = function($y) { using ($x); if ($y>1) return 1+$x($y-1); return 1; } return $x(3);

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.320.0070.03512.52
5.4.310.0080.04212.52
5.4.300.0110.04212.52
5.4.290.0080.04912.51
5.4.280.0070.04912.41
5.4.270.0120.04212.41
5.4.260.0080.04912.41
5.4.250.0060.03912.41
5.4.240.0060.03612.41
5.4.230.0050.04012.40
5.4.220.0060.03712.40
5.4.210.0060.04112.40
5.4.200.0110.04212.40
5.4.190.0080.04512.39
5.4.180.0090.04612.39
5.4.170.0040.03712.41
5.4.160.0070.04212.40
5.4.150.0090.04812.39
5.4.140.0100.03912.09
5.4.130.0060.03612.07
5.4.120.0050.03812.04
5.4.110.0020.03912.03
5.4.100.0040.03912.03
5.4.90.0090.03512.03
5.4.80.0100.03712.03
5.4.70.0050.04112.03
5.4.60.0080.03212.03
5.4.50.0070.04212.03
5.4.40.0070.03912.01
5.4.30.0060.03612.01
5.4.20.0100.04712.01
5.4.10.0090.03512.01
5.4.00.0070.03511.50
5.3.290.0090.03812.80
5.3.280.0060.03812.71
5.3.270.0040.05412.72
5.3.260.0050.04512.72
5.3.250.0070.03612.72
5.3.240.0120.03112.72
5.3.230.0050.04112.71
5.3.220.0080.05112.68
5.3.210.0090.05112.68
5.3.200.0100.04212.68
5.3.190.0050.04812.68
5.3.180.0050.04812.67
5.3.170.0090.05012.67
5.3.160.0070.04012.67
5.3.150.0080.04312.67
5.3.140.0090.03412.66
5.3.130.0090.03712.65
5.3.120.0060.04012.66
5.3.110.0100.04412.66
5.3.100.0100.04112.12
5.3.90.0080.03412.10
5.3.80.0090.04212.09
5.3.70.0120.04212.09
5.3.60.0100.04212.08
5.3.50.0110.03912.02
5.3.40.0110.03712.02
5.3.30.0030.03911.98
5.3.20.0100.03811.77
5.3.10.0040.03911.73
5.3.00.0090.03511.72
5.2.170.0070.0349.18
5.2.160.0080.0319.18
5.2.150.0060.0439.18
5.2.140.0080.0409.18
5.2.130.0100.0359.14
5.2.120.0060.0279.14
5.2.110.0080.0289.15
5.2.100.0090.0399.14
5.2.90.0060.0399.14
5.2.80.0030.0329.14
5.2.70.0060.0319.14
5.2.60.0050.0349.09
5.2.50.0060.0299.05
5.2.40.0040.0319.03
5.2.30.0070.0379.02
5.2.20.0050.0309.00
5.2.10.0090.0298.93
5.2.00.0060.0288.79
5.1.60.0050.0238.07
5.1.50.0030.0278.06
5.1.40.0050.0248.05
5.1.30.0070.0318.40
5.1.20.0050.0298.41
5.1.10.0060.0288.14
5.1.00.0070.0268.14
5.0.50.0040.0206.62
5.0.40.0070.0246.48
5.0.30.0060.0306.29
5.0.20.0040.0206.26
5.0.10.0070.0196.24
5.0.00.0030.0316.23
4.4.90.0050.0134.78
4.4.80.0040.0144.75
4.4.70.0040.0214.76
4.4.60.0040.0164.76
4.4.50.0030.0164.77
4.4.40.0070.0294.70
4.4.30.0020.0164.76
4.4.20.0030.0154.85
4.4.10.0030.0164.85
4.4.00.0010.0284.75
4.3.110.0020.0224.67
4.3.100.0020.0194.66
4.3.90.0040.0134.63
4.3.80.0040.0294.58
4.3.70.0060.0174.63
4.3.60.0040.0174.63
4.3.50.0060.0164.63
4.3.40.0060.0244.54
4.3.30.0040.0173.28
4.3.20.0040.0253.25
4.3.10.0020.0153.21
4.3.00.0070.01714.28

preferences:
153.32 ms | 1394 KiB | 7 Q