3v4l.org

run code in 300+ PHP versions simultaneously
<?php function check_plain($text) { return htmlspecialchars($text, ENT_QUOTES, 'UTF-8'); } $str = ' is an online shell that allows you to evaluate (hence 3v4l) your code on our servers. We support more than 100 different PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you submit, we return: </p><ul> <li>Output from all released PHP and HHVM versions</li> <li>Output from all upcoming alpha &amp; beta PHP versions</li> <li><a href="http://derickrethans.nl/projects.html#vld">VLD</'; print strlen($str) . "\n"; $maxlength = 77; $cutlength = $maxlength; while (0 < $delta = $maxlength - strlen(check_plain(substr($str, $cutlength)))) { $cutlength += $delta; } print $substr($str, $cutlength);

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.70.0040.01416.62
8.3.60.0000.01418.43
8.3.50.0060.01021.09
8.3.40.0100.00718.59
8.3.30.0090.00919.23
8.3.20.0040.00420.29
8.3.10.0090.00023.48
8.3.00.0030.00719.26
8.2.180.0170.00316.75
8.2.170.0110.00422.96
8.2.160.0130.00020.09
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0100.00022.28
8.2.110.0040.00422.21
8.2.100.0110.00017.84
8.2.90.0040.00419.05
8.2.80.0000.00818.03
8.2.70.0060.00317.63
8.2.60.0030.00617.66
8.2.50.0040.00718.07
8.2.40.0000.00819.88
8.2.30.0050.00219.80
8.2.20.0030.00517.66
8.2.10.0060.00318.14
8.2.00.0030.00717.64
8.1.280.0140.00725.92
8.1.270.0040.00421.92
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0050.00523.70
8.1.230.0040.00819.14
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0050.00317.63
8.1.180.0060.00318.10
8.1.170.0030.00518.64
8.1.160.0000.00822.09
8.1.150.0030.00618.66
8.1.140.0040.00417.39
8.1.130.0000.00717.80
8.1.120.0030.00317.46
8.1.110.0000.01017.38
8.1.100.0000.00817.55
8.1.90.0070.00017.47
8.1.80.0040.00417.51
8.1.70.0000.00717.37
8.1.60.0030.00617.62
8.1.50.0080.00017.52
8.1.40.0040.00417.53
8.1.30.0040.00417.63
8.1.20.0030.00617.67
8.1.10.0050.00317.58
8.1.00.0040.00417.54
8.0.300.0050.00318.96
8.0.290.0000.00717.05
8.0.280.0030.00518.46
8.0.270.0030.00317.16
8.0.260.0000.00617.19
8.0.250.0030.00317.08
8.0.240.0080.00017.09
8.0.230.0030.00317.05
8.0.220.0070.00016.86
8.0.210.0000.00717.06
8.0.200.0030.00317.08
8.0.190.0040.00417.04
8.0.180.0040.00417.02
8.0.170.0000.00816.96
8.0.160.0000.00716.89
8.0.150.0070.00016.88
8.0.140.0040.00416.97
8.0.130.0000.00813.40
8.0.120.0000.00716.99
8.0.110.0040.00417.01
8.0.100.0030.00516.92
8.0.90.0030.00316.80
8.0.80.0060.01116.98
8.0.70.0040.00416.85
8.0.60.0040.00416.96
8.0.50.0050.00216.88
8.0.30.0090.01117.06
8.0.20.0090.01217.40
8.0.10.0040.00417.01
8.0.00.0070.01116.83
7.4.330.0050.00015.00
7.4.320.0000.00616.44
7.4.300.0060.00016.41
7.4.290.0040.00416.61
7.4.280.0040.00416.59
7.4.270.0040.00416.47
7.4.260.0030.00316.60
7.4.250.0000.00816.48
7.4.240.0040.00316.52
7.4.230.0070.00016.72
7.4.220.0100.00716.56
7.4.210.0050.00916.60
7.4.200.0040.00416.50
7.4.190.0000.00816.59
7.4.160.0170.00016.50
7.4.150.0110.00817.40
7.4.140.0090.00917.86
7.4.130.0090.01016.47
7.4.120.0110.00716.57
7.4.110.0140.00916.70
7.4.100.0160.00316.61
7.4.90.0100.00716.51
7.4.80.0080.01419.39
7.4.70.0130.00616.63
7.4.60.0130.00316.64
7.4.50.0060.00316.40
7.4.40.0090.01022.77
7.4.30.0120.00316.70
7.4.00.0040.01115.29
7.3.330.0030.00313.44
7.3.320.0060.00013.29
7.3.310.0080.00016.39
7.3.300.0000.00816.41
7.3.290.0000.01416.44
7.3.280.0070.01116.40
7.3.270.0120.00617.40
7.3.260.0110.00616.43
7.3.250.0090.01116.62
7.3.240.0120.00516.35
7.3.230.0090.01116.64
7.3.210.0100.00716.58
7.3.200.0070.01519.39
7.3.190.0160.00616.58
7.3.180.0160.00616.48
7.3.170.0120.00316.64
7.3.160.0090.00616.53
7.3.120.0040.00714.86
7.3.10.0030.01316.77
7.3.00.0030.00616.62
7.2.330.0080.01516.37
7.2.320.0070.01016.66
7.2.310.0060.01016.58
7.2.300.0060.01016.64
7.2.290.0100.01016.55
7.2.130.0070.00816.89
7.2.120.0060.01316.57
7.2.110.0080.01316.90
7.2.100.0040.01616.86
7.2.90.0110.00716.99
7.2.80.0080.01116.97
7.2.70.0080.00816.73
7.2.60.0020.00916.65
7.2.50.0060.00916.79
7.2.40.0070.01417.04
7.2.30.0060.00616.90
7.2.20.0070.00717.13
7.2.10.0070.01016.94
7.2.00.0030.01118.16
7.1.250.0070.01015.65
7.1.200.0030.01015.74
7.1.100.0080.00318.05
7.1.70.0030.00616.83
7.1.60.0120.01219.46
7.1.50.0140.00734.66
7.1.00.0070.07322.48
7.0.200.0000.00716.54
7.0.140.0030.07022.21
7.0.60.0200.06719.94
7.0.50.0100.07317.91
7.0.40.0100.08320.27
7.0.30.0200.04320.21
7.0.20.0200.06720.09
7.0.10.0200.06320.20
7.0.00.0030.05320.09
5.6.280.0000.07720.78
5.6.210.0000.07320.47
5.6.200.0000.04718.16
5.6.190.0030.04320.63
5.6.180.0300.07020.68
5.6.170.0230.03720.47
5.6.160.0030.04320.44
5.6.150.0100.07318.18
5.6.140.0100.07018.16
5.6.130.0070.07718.18
5.6.120.0070.03720.97
5.6.110.0100.06720.98
5.6.100.0100.08720.99
5.6.90.0070.07320.99
5.6.80.0100.05320.48
5.6.70.4370.04020.37
5.5.350.0000.09020.47
5.5.340.0130.07317.98
5.5.330.0070.06020.29
5.5.320.0270.04320.25
5.5.310.0100.06720.34
5.5.300.0000.04317.94
5.5.290.0030.07317.91
5.5.280.0030.04020.69
5.5.270.0070.04320.79
5.5.260.0100.05020.96
5.5.250.0030.08020.61
5.5.240.0000.06720.16
5.4.450.0600.07319.57
5.4.440.0700.05719.45
5.4.430.0800.06319.54
5.4.420.0700.04319.69
5.4.410.0670.05319.34
5.4.400.0630.05019.25
5.4.390.0630.05319.24
5.4.380.0530.06318.59
5.4.370.0270.05718.70
5.4.360.0330.05018.63
5.4.350.0400.05318.53
5.4.340.0230.06018.76
5.4.320.0050.04412.50
5.4.310.0070.04512.50
5.4.300.0080.03412.50
5.4.290.0110.06412.49
5.4.280.0070.06112.38
5.4.270.0090.06112.38
5.4.260.0120.06412.38
5.4.250.0090.06812.39
5.4.240.0300.09012.38
5.4.230.0140.07512.37
5.4.220.0120.05212.38
5.4.210.0080.05712.37
5.4.200.0100.06012.38
5.4.190.0080.05712.37
5.4.180.0110.05012.38
5.4.170.0070.05212.38
5.4.160.0100.04012.38
5.4.150.0120.04312.38
5.4.140.0070.04612.05
5.4.130.0060.04012.05
5.4.120.0070.05212.00
5.4.110.0070.04512.00
5.4.100.0080.03312.00
5.4.90.0090.05212.00
5.4.80.0070.07512.00
5.4.70.0070.05011.99
5.4.60.0060.05211.99
5.4.50.0070.03511.99
5.4.40.0050.05211.98
5.4.30.0080.03911.97
5.4.20.0080.04111.98
5.4.10.0080.03511.97
5.4.00.0030.04311.47
5.3.290.0060.05612.80
5.3.280.0050.03912.71
5.3.270.0080.04312.73
5.3.260.0050.04512.72
5.3.250.0080.05412.72
5.3.240.0130.05112.72
5.3.230.0060.05412.71
5.3.220.0050.06012.68
5.3.210.0090.03812.68
5.3.200.0050.03912.68
5.3.190.0190.06512.68
5.3.180.0080.06312.67
5.3.170.0080.04612.67
5.3.160.0090.04812.67
5.3.150.0090.05312.67
5.3.140.0090.03712.66
5.3.130.0120.06212.66
5.3.120.0050.05812.66
5.3.110.0100.06912.66
5.3.100.0100.06312.12
5.3.90.0110.05912.10
5.3.80.0110.05812.09
5.3.70.0070.05412.09
5.3.60.0080.06012.08
5.3.50.0100.05412.02
5.3.40.0100.05312.02
5.3.30.0030.06311.98
5.3.20.0070.05511.77
5.3.10.0140.05511.73
5.3.00.0130.06611.72
5.2.170.0090.0489.22
5.2.160.0070.0459.21
5.2.150.0100.0459.22
5.2.140.0080.0469.21
5.2.130.0050.0549.18
5.2.120.0090.0409.18
5.2.110.0080.0419.18
5.2.100.0080.0429.18
5.2.90.0080.0449.18
5.2.80.0110.0519.18
5.2.70.0140.0639.17
5.2.60.0110.0659.13
5.2.50.0140.0729.09
5.2.40.0080.0409.07
5.2.30.0080.0449.05
5.2.20.0060.0369.04
5.2.10.0100.0328.95
5.2.00.0080.0368.81
5.1.60.0070.0388.09
5.1.50.0050.0548.09
5.1.40.0100.0538.08
5.1.30.0090.0558.42
5.1.20.0060.0388.44
5.1.10.0040.0408.17
5.1.00.0060.0368.16
5.0.50.0050.0326.64
5.0.40.0080.0316.50
5.0.30.0040.0466.32
5.0.20.0030.0306.29
5.0.10.0000.0346.27
5.0.00.0040.0426.26
4.4.90.0020.0304.78
4.4.80.0040.0274.75
4.4.70.0040.0254.75
4.4.60.0030.0264.75
4.4.50.0050.0234.77
4.4.40.0040.0374.71
4.4.30.0030.0194.76
4.4.20.0020.0254.85
4.4.10.0040.0224.85
4.4.00.0000.0354.76
4.3.110.0040.0224.67
4.3.100.0050.0214.66
4.3.90.0060.0204.64
4.3.80.0060.0314.59
4.3.70.0030.0224.63
4.3.60.0080.0184.63
4.3.50.0090.0214.62
4.3.40.0180.0894.54
4.3.30.0100.0253.30
4.3.20.0050.0203.28
4.3.10.0040.0183.22
4.3.00.0330.02310.54

preferences:
50.98 ms | 401 KiB | 5 Q