3v4l.org

run code in 300+ PHP versions simultaneously
<?php $suma = 1 +1; $f = function($in){return ($in + 5) . " SALida"} echo $f();

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.0040.03912.52
5.4.310.0060.03812.52
5.4.300.0090.03312.52
5.4.290.0050.03912.51
5.4.280.0070.03512.41
5.4.270.0090.04612.41
5.4.260.0080.04712.41
5.4.250.0050.03912.41
5.4.240.0060.03612.41
5.4.230.0050.03912.40
5.4.220.0110.03112.40
5.4.210.0060.03512.40
5.4.200.0070.03612.40
5.4.190.0090.03312.40
5.4.180.0070.03512.40
5.4.170.0070.03512.41
5.4.160.0120.03012.40
5.4.150.0150.02712.40
5.4.140.0090.03412.09
5.4.130.0130.02812.07
5.4.120.0140.02712.04
5.4.110.0110.03012.03
5.4.100.0090.03212.03
5.4.90.0040.03912.03
5.4.80.0080.03612.03
5.4.70.0040.04012.03
5.4.60.0080.03312.03
5.4.50.0030.03812.03
5.4.40.0070.03312.01
5.4.30.0070.03512.01
5.4.20.0070.03512.00
5.4.10.0070.03412.01
5.4.00.0070.04211.50
5.3.290.0110.03512.80
5.3.280.0080.03612.71
5.3.270.0040.04012.73
5.3.260.0050.04012.72
5.3.250.0060.03712.72
5.3.240.0070.03612.71
5.3.230.0060.03712.71
5.3.220.0060.03712.68
5.3.210.0040.04012.68
5.3.200.0090.03212.68
5.3.190.0040.03812.68
5.3.180.0040.03712.68
5.3.170.0080.03712.67
5.3.160.0040.04812.67
5.3.150.0100.03212.68
5.3.140.0080.04812.66
5.3.130.0050.04012.65
5.3.120.0060.03912.66
5.3.110.0040.04112.66
5.3.100.0060.03612.12
5.3.90.0050.03612.11
5.3.80.0080.04012.09
5.3.70.0060.03712.09
5.3.60.0050.03712.08
5.3.50.0050.04312.02
5.3.40.0050.03612.02
5.3.30.0080.03311.98
5.3.20.0070.03611.76
5.3.10.0040.03611.74
5.3.00.0020.03811.72
5.2.170.0070.0459.18
5.2.160.0100.0379.18
5.2.150.0030.0329.18
5.2.140.0050.0309.18
5.2.130.0070.0389.14
5.2.120.0070.0299.14
5.2.110.0040.0299.14
5.2.100.0040.0319.14
5.2.90.0070.0319.14
5.2.80.0040.0309.14
5.2.70.0050.0379.14
5.2.60.0040.0309.09
5.2.50.0080.0359.06
5.2.40.0090.0309.04
5.2.30.0060.0359.01
5.2.20.0030.0299.01
5.2.10.0050.0278.93
5.2.00.0030.0318.78
5.1.60.0040.0248.07
5.1.50.0050.0318.06
5.1.40.0040.0278.05
5.1.30.0030.0278.40
5.1.20.0040.0298.42
5.1.10.0040.0268.14
5.1.00.0030.0268.14
5.0.50.0030.0206.62
5.0.40.0050.0186.48
5.0.30.0030.0336.30
5.0.20.0070.0166.26
5.0.10.0030.0196.24
5.0.00.0060.0326.23
4.4.90.0040.0144.78
4.4.80.0040.0174.75
4.4.70.0040.0144.76
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0050.0234.70
4.4.30.0010.0164.76
4.4.20.0030.0154.85
4.4.10.0040.0144.85
4.4.00.0030.0244.75
4.3.110.0020.0174.67
4.3.100.0030.0144.66
4.3.90.0070.0184.64
4.3.80.0030.0244.58
4.3.70.0070.0184.63
4.3.60.0010.0164.63
4.3.50.0010.0174.63
4.3.40.0030.0244.54
4.3.30.0040.0143.28
4.3.20.0030.0153.26
4.3.10.0030.0143.22
4.3.00.0030.01715.97

preferences:
147.42 ms | 1394 KiB | 7 Q