3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace cli { function command() {} function prompt($message, &$var, $default) {} } namespace { use function cli\prompt; cli\command(); prompt("Hey! (yN) [y]>", $prompt, "y"); }

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.60.0040.01118.55
8.3.50.0080.01022.08
8.3.40.0140.00718.71
8.3.30.0090.00919.10
8.3.20.0040.00420.39
8.3.10.0000.00723.51
8.3.00.0070.00322.33
8.2.180.0090.00618.18
8.2.170.0080.00822.96
8.2.160.0180.00320.58
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0140.00022.23
8.2.110.0030.00622.24
8.2.100.0060.00617.59
8.2.90.0000.00819.07
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00917.77
8.2.50.0000.00818.07
8.2.40.0040.00417.84
8.2.30.0000.00717.81
8.2.20.0050.00317.46
8.2.10.0060.00317.54
8.2.00.0000.00817.55
8.1.280.0090.00925.92
8.1.270.0080.00023.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0090.00319.15
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.10
8.1.190.0050.00217.38
8.1.180.0040.00418.10
8.1.170.0000.01218.24
8.1.160.0000.00921.91
8.1.150.0040.00418.37
8.1.140.0000.00717.25
8.1.130.0030.00317.69
8.1.120.0020.00517.37
8.1.110.0070.00017.38
8.1.100.0000.00717.28
8.1.90.0000.00717.24
8.1.80.0000.00617.23
8.1.70.0000.00717.25
8.1.60.0000.00917.51
8.1.50.0000.00917.35
8.1.40.0020.00517.34
8.1.30.0050.00317.48
8.1.20.0070.00017.60
8.1.10.0000.00717.36
8.1.00.0000.00717.40
8.0.300.0000.00818.77
8.0.290.0000.00817.05
8.0.280.0040.00418.18
8.0.270.0030.00317.12
8.0.260.0030.00318.39
8.0.250.0060.00016.88
8.0.240.0000.00716.77
8.0.230.0000.00716.73
8.0.220.0040.00416.70
8.0.210.0040.00416.66
8.0.200.0030.00316.84
8.0.190.0080.00016.77
8.0.180.0030.00516.77
8.0.170.0040.00416.70
8.0.160.0030.00616.77
8.0.150.0040.00416.68
8.0.140.0040.00416.74
8.0.130.0050.00013.21
8.0.120.0080.00016.69
8.0.110.0040.00416.82
8.0.100.0040.00416.57
8.0.90.0000.00816.74
8.0.80.0060.01216.80
8.0.70.0000.00716.57
8.0.60.0000.00816.73
8.0.50.0000.00716.75
8.0.30.0130.01016.94
8.0.20.0150.00817.40
8.0.10.0000.00716.74
8.0.00.0150.01116.75
7.4.330.0000.00615.03
7.4.320.0060.00016.30
7.4.300.0070.00016.49
7.4.290.0000.00716.40
7.4.280.0000.00716.39
7.4.270.0000.00716.54
7.4.260.0030.00316.44
7.4.250.0020.00516.32
7.4.240.0020.00516.45
7.4.230.0000.00616.61
7.4.220.0160.00616.46
7.4.210.0130.00416.38
7.4.200.0030.00316.43
7.4.190.0070.00016.42
7.4.160.0170.00316.41
7.4.150.0160.00617.40
7.4.140.0060.01117.86
7.4.130.0150.00516.36
7.4.120.0090.00716.41
7.4.110.0030.01416.32
7.4.100.0130.00616.26
7.4.90.0120.00616.48
7.4.80.0030.01916.57
7.4.70.0160.00316.36
7.4.60.0100.00716.42
7.4.50.0040.00416.23
7.4.40.0070.00722.77
7.4.30.0000.01816.52
7.4.00.0070.01114.77
7.3.330.0030.00313.30
7.3.320.0000.00513.19
7.3.310.0030.00316.13
7.3.300.0000.00616.24
7.3.290.0040.01016.16
7.3.280.0080.00916.22
7.3.270.0090.01417.40
7.3.260.0060.01016.47
7.3.250.0080.01116.41
7.3.240.0030.01316.25
7.3.230.0070.01016.39
7.3.210.0100.00716.48
7.3.200.0060.01016.17
7.3.190.0030.01316.49
7.3.180.0080.00816.43
7.3.170.0120.00316.40
7.3.160.0070.01016.52
7.3.120.0100.00714.75
7.3.110.0070.01014.73
7.3.100.0030.01014.54
7.3.90.0150.00314.48
7.3.80.0030.00814.61
7.3.70.0060.00914.59
7.3.60.0030.00614.73
7.3.50.0030.01014.68
7.3.40.0040.01114.80
7.3.30.0100.00314.81
7.3.20.0030.00916.52
7.3.10.0100.00016.77
7.3.00.0070.00716.73
7.2.330.0070.01016.44
7.2.320.0070.01116.56
7.2.310.0030.01316.58
7.2.300.0060.01216.59
7.2.290.0100.00616.25
7.2.250.0030.01514.88
7.2.240.0060.00914.74
7.2.230.0070.01114.62
7.2.220.0030.00615.18
7.2.210.0090.00615.09
7.2.200.0040.01114.86
7.2.190.0090.00614.56
7.2.180.0000.01514.89
7.2.170.0000.01715.03
7.1.330.0100.00315.42
7.1.320.0030.00615.56
7.1.310.0060.00615.68
7.1.300.0110.00315.67
7.1.290.0030.00815.47
7.1.280.0030.00615.59
7.1.270.0090.00315.45
7.1.260.0060.00815.44
7.1.70.0000.01417.16
7.1.60.0000.02419.29
7.1.50.0070.01016.98
7.1.00.0070.07322.37
7.0.200.0070.00016.74
7.0.140.0000.07722.09
7.0.60.0170.07719.90
7.0.50.0100.07717.95
7.0.40.0170.04020.42
7.0.30.0570.05020.07
7.0.20.0330.07720.02
7.0.10.0100.03720.22
7.0.00.0070.09020.07
5.6.280.0000.07720.93
5.6.210.0100.08720.73
5.6.200.0070.07318.22
5.6.190.0070.08320.47
5.6.180.0430.05320.61
5.6.170.0230.03320.54
5.6.160.0070.04020.46
5.6.150.0000.05018.25
5.6.140.0070.04318.15
5.6.130.0070.03718.27
5.6.120.0030.06020.98
5.6.110.0070.06720.99
5.6.100.0070.08721.09
5.6.90.0070.09021.10
5.6.80.0130.07720.40
5.5.350.4300.04320.50
5.5.340.0030.07318.02
5.5.330.0070.04020.19
5.5.320.0430.08020.24
5.5.310.0470.06720.25
5.5.300.0070.08017.95
5.5.290.0030.04017.95
5.5.280.0100.08020.83
5.5.270.0030.08320.87
5.5.260.0000.05020.88
5.5.250.0070.04020.50
5.5.240.0100.07020.04
5.4.450.0130.05719.45
5.4.440.0230.04719.38
5.4.430.0100.06019.35
5.4.420.0030.06719.56
5.4.410.0130.06019.31
5.4.400.0130.06719.28
5.4.390.0200.05719.23
5.4.380.0070.06018.80
5.4.370.0170.05718.80
5.4.360.0200.05318.52
5.4.350.0200.05018.50
5.4.340.0070.06018.50
5.4.320.0070.04012.52
5.4.310.0070.03712.52
5.4.300.0070.03912.52
5.4.290.0090.03312.52
5.4.280.0090.04012.41
5.4.270.0090.03312.38
5.4.260.0060.03712.38
5.4.250.0020.04112.38
5.4.240.0040.03712.38
5.4.230.0100.03512.37
5.4.220.0040.03812.38
5.4.210.0060.03512.38
5.4.200.0060.03912.37
5.4.190.0040.03712.37
5.4.180.0060.03812.37
5.4.170.0090.03312.38
5.4.160.0070.03712.38
5.4.150.0050.04012.37
5.4.140.0080.03912.06
5.4.130.0100.04112.04
5.4.120.0090.04112.00
5.4.110.0060.03812.00
5.4.100.0090.03312.00
5.4.90.0070.03512.00
5.4.80.0050.03812.00
5.4.70.0050.03512.00
5.4.60.0050.03612.00
5.4.50.0040.03612.00
5.4.40.0050.03511.98
5.4.30.0050.03611.98
5.4.20.0050.03611.98
5.4.10.0060.03511.98
5.4.00.0060.03611.47
5.3.290.0060.04312.80
5.3.280.0060.03912.71
5.3.270.0060.04212.73
5.3.260.0070.03812.72
5.3.250.0090.03612.71
5.3.240.0050.03912.71
5.3.230.0040.03912.71
5.3.220.0080.04312.68
5.3.210.0090.04112.68
5.3.200.0070.03912.68
5.3.190.0080.03712.68
5.3.180.0090.03512.67
5.3.170.0040.03812.67
5.3.160.0060.03712.67
5.3.150.0080.03512.68
5.3.140.0080.03412.66
5.3.130.0090.04912.66
5.3.120.0040.04612.66
5.3.110.0060.04312.66
5.3.100.0050.03712.12
5.3.90.0040.03712.08
5.3.80.0050.03612.08
5.3.70.0050.03712.08
5.3.60.0060.03612.06
5.3.50.0060.03512.00
5.3.40.0090.03712.00
5.3.30.0060.03411.95
5.3.20.0080.03211.74
5.3.10.0040.03811.70
5.3.00.0070.03611.68
5.2.170.0060.0369.15
5.2.160.0070.0409.15
5.2.150.0060.0379.15
5.2.140.0080.0329.15
5.2.130.0030.0319.11
5.2.120.0060.0279.11
5.2.110.0080.0259.11
5.2.100.0070.0309.11
5.2.90.0040.0319.11
5.2.80.0070.0289.10
5.2.70.0040.0319.10
5.2.60.0040.0309.05
5.2.50.0050.0309.03
5.2.40.0050.0319.00
5.2.30.0040.0328.97
5.2.20.0020.0318.96
5.2.10.0070.0328.89
5.2.00.0060.0288.75
5.1.60.0080.0228.04
5.1.50.0060.0238.04
5.1.40.0080.0218.02
5.1.30.0050.0258.36
5.1.20.0040.0278.39
5.1.10.0080.0288.12
5.1.00.0080.0288.11
5.0.50.0040.0206.59
5.0.40.0040.0186.45
5.0.30.0040.0306.27
5.0.20.0020.0216.24
5.0.10.0030.0236.21
5.0.00.0020.0326.21
4.4.90.0030.0154.78
4.4.80.0040.0134.75
4.4.70.0010.0174.76
4.4.60.0010.0174.76
4.4.50.0020.0164.77
4.4.40.0070.0294.70
4.4.30.0030.0194.76
4.4.20.0040.0214.84
4.4.10.0040.0224.85
4.4.00.0030.0284.76
4.3.110.0030.0164.67
4.3.100.0020.0154.66
4.3.90.0020.0154.63
4.3.80.0030.0254.59
4.3.70.0040.0134.63
4.3.60.0030.0144.63
4.3.50.0010.0174.63
4.3.40.0010.0264.53
4.3.30.0010.0173.27
4.3.20.0010.0173.25
4.3.10.0010.0173.21
4.3.00.0070.0235.77

preferences:
73.85 ms | 401 KiB | 5 Q