3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = '++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.+++.'; $commands = array(      '>' => '$ptr++;',      '<' => '$ptr--;',      '+' => '$cells[$ptr]++;',      '-' => '$cells[$ptr]--;',      '.' => 'echo chr($cells[$ptr]);',      ',' => 'throw new Exception(", not supported");',      '[' => 'while($cells[$ptr]) {',      ']' => '}' ); $php_code = strtr($code, $commands); $cells = array(0,0,0,0,0,0,0,0); $ptr = 0; eval($php_code);  

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.310.3200.03719.13
5.4.300.4330.04319.20
5.4.290.3870.04019.26
5.4.280.3970.05319.13
5.4.270.3630.04019.13
5.4.260.3770.03019.22
5.4.250.3830.03319.20
5.4.240.4000.03319.12
5.4.230.3700.04018.98
5.4.220.3600.03718.95
5.4.210.4270.03319.00
5.4.200.3700.03719.19
5.4.190.3870.04319.14
5.4.180.3730.04319.21
5.4.170.3900.03719.21
5.4.160.0130.07019.13
5.4.150.0900.03318.92
5.4.140.4600.05016.39
5.4.130.4030.02316.35
5.4.120.3900.03716.39
5.4.110.4800.03316.51
5.4.100.3600.03716.63
5.4.90.3600.04016.65
5.4.80.3670.03316.48
5.4.70.3800.03716.55
5.4.60.4100.03316.50
5.4.50.0000.04716.41
5.4.40.0030.05316.22
5.4.30.2000.05016.45
5.4.20.3730.03716.45
5.4.10.3730.03016.50
5.4.00.3770.02715.91
5.3.280.3800.03714.52
5.3.270.4000.03714.53
5.3.260.0970.04314.48
5.3.250.0070.04314.53
5.3.240.4500.05014.57
5.3.230.4070.03314.52
5.3.220.3700.03314.39
5.3.210.4270.04314.46
5.3.200.3670.04014.50
5.3.190.3630.03314.52
5.3.180.3730.03714.52
5.3.170.3970.03714.50
5.3.160.3830.03714.50
5.3.150.4170.05014.65
5.3.140.0070.07014.54
5.3.130.3470.03014.49
5.3.120.3930.03714.50
5.3.110.3900.04314.56
5.3.100.3400.03013.86
5.3.90.4200.03714.11
5.3.80.3700.04013.86
5.3.70.3830.04314.04
5.3.60.3870.03713.79
5.3.50.3930.03013.92
5.3.40.3800.03713.96
5.3.30.3870.03713.72
5.3.20.3700.03313.50
5.3.10.3600.03313.45
5.3.00.4100.03713.56
5.2.170.3230.03010.97
5.2.160.3300.03011.13
5.2.150.3300.03311.14
5.2.140.3070.03311.13
5.2.130.3430.03011.05
5.2.120.3230.03011.10
5.2.110.3200.02311.04
5.2.100.3070.02711.00
5.2.90.3170.02711.00
5.2.80.3600.02711.08
5.2.70.3100.03011.03
5.2.60.3600.02710.99
5.2.50.3370.03010.86
5.2.40.2000.02710.98
5.2.30.2400.03310.82
5.2.20.2630.03310.92
5.2.10.2630.03310.76
5.2.00.2530.02710.73
5.1.60.2900.01710.14
5.1.50.2530.0209.84
5.1.40.2800.0279.96
5.1.30.2170.02710.35
5.1.20.3230.02010.40
5.1.10.3030.02310.02
5.1.00.3070.0209.96
5.0.50.1730.0208.70
5.0.40.1730.0178.40
5.0.30.1530.0278.23
5.0.20.1730.0208.26
5.0.10.1700.0208.16
5.0.00.1070.0338.10
4.4.90.1270.0176.12
4.4.80.1600.0176.12
4.4.70.1330.0206.12
4.4.60.1300.0136.12
4.4.50.1470.0176.12
4.4.40.1600.0276.12
4.4.30.1470.0176.12
4.4.20.1500.0176.12
4.4.10.1530.0176.12
4.4.00.1670.0206.12
4.3.110.1730.0176.12
4.3.100.1570.0136.12
4.3.90.1470.0176.12
4.3.80.0870.0236.12
4.3.70.1300.0136.12
4.3.60.1430.0106.12
4.3.50.1570.0136.12
4.3.40.1200.0236.12
4.3.30.0670.0206.12
4.3.20.0570.0176.12
4.3.10.0730.0236.12
4.3.00.0630.0206.12

preferences:
139.36 ms | 1394 KiB | 7 Q