3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = function($input) { if (2 === $input) { return true; } } var_dump($a(2)); var_dump($a(44));

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.340.0040.03712.02
5.4.320.0080.03612.52
5.4.310.0050.04212.52
5.4.300.0080.04212.52
5.4.290.0060.04412.51
5.4.280.0050.03712.41
5.4.270.0060.03712.41
5.4.260.0060.03812.41
5.4.250.0080.03612.40
5.4.240.0040.04112.41
5.4.230.0040.03912.40
5.4.220.0040.04612.40
5.4.210.0060.03812.40
5.4.200.0060.04512.40
5.4.190.0060.03712.39
5.4.180.0100.03412.40
5.4.170.0060.04112.41
5.4.160.0090.04312.40
5.4.150.0130.03712.39
5.4.140.0050.04212.09
5.4.130.0060.03812.07
5.4.120.0030.03812.04
5.4.110.0070.03412.03
5.4.100.0050.04112.03
5.4.90.0070.03812.03
5.4.80.0070.04812.02
5.4.70.0090.04012.02
5.4.60.0070.04012.02
5.4.50.0070.03612.03
5.4.40.0070.03412.02
5.4.30.0090.04012.01
5.4.20.0070.03812.01
5.4.10.0060.03512.01
5.4.00.0040.03911.50
5.3.290.0050.04212.80
5.3.280.0070.03912.71
5.3.270.0080.04112.73
5.3.260.0100.03712.72
5.3.250.0060.04012.71
5.3.240.0090.03412.72
5.3.230.0070.03712.71
5.3.220.0070.04012.68
5.3.210.0140.05612.68
5.3.200.0060.03612.68
5.3.190.0080.03612.68
5.3.180.0050.03812.67
5.3.170.0050.04212.67
5.3.160.0070.04412.67
5.3.150.0100.04312.68
5.3.140.0070.03712.66
5.3.130.0070.04512.65
5.3.120.0060.04212.66
5.3.110.0080.03912.66
5.3.100.0070.03512.12
5.3.90.0060.04112.11
5.3.80.0080.03812.09
5.3.70.0070.04012.09
5.3.60.0080.04012.08
5.3.50.0090.03812.02
5.3.40.0060.04012.02
5.3.30.0060.03511.98
5.3.20.0060.03511.77
5.3.10.0080.03711.73
5.3.00.0090.03811.72
5.2.170.0060.0319.18
5.2.160.0080.0309.18
5.2.150.0060.0399.18
5.2.140.0100.0359.18
5.2.130.0040.0349.14
5.2.120.0090.0309.14
5.2.110.0070.0309.14
5.2.100.0040.0329.14
5.2.90.0080.0269.15
5.2.80.0050.0339.14
5.2.70.0070.0299.14
5.2.60.0040.0359.09
5.2.50.0060.0329.05
5.2.40.0040.0319.03
5.2.30.0060.0299.01
5.2.20.0060.0279.00
5.2.10.0080.0278.92
5.2.00.0050.0288.79
5.1.60.0010.0278.06
5.1.50.0040.0308.06
5.1.40.0050.0248.05
5.1.30.0050.0258.40
5.1.20.0080.0328.42
5.1.10.0040.0268.14
5.1.00.0030.0278.14
5.0.50.0080.0176.62
5.0.40.0050.0196.47
5.0.30.0040.0336.29
5.0.20.0050.0236.26
5.0.10.0030.0226.23
5.0.00.0050.0306.23
4.4.90.0030.0184.78
4.4.80.0030.0154.75
4.4.70.0020.0184.75
4.4.60.0040.0194.76
4.4.50.0040.0164.77
4.4.40.0010.0274.71
4.4.30.0050.0164.76
4.4.20.0010.0184.84
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0030.0174.67
4.3.100.0020.0164.67
4.3.90.0020.0154.64
4.3.80.0030.0334.58
4.3.70.0010.0174.63
4.3.60.0030.0144.63
4.3.50.0060.0134.63
4.3.40.0020.0254.54
4.3.30.0000.0183.29
4.3.20.0020.0173.26
4.3.10.0030.0153.22
4.3.00.0070.0276.99

preferences:
136.5 ms | 1394 KiB | 7 Q