3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $word = "רחוב אלסלבדור 41 דירה 84 ירושלים"; $revd = preg_replace_callback('#([א-ת]+)#', 'rev_first', $word); function rev_first($matches){ return strrev($matches[1]); } var_dump($revd);
based on h4GGZ

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0140.00798.97
7.3.0rc30.0050.00516.87
7.3.0beta10.0030.00313.04
7.3.0alpha10.0070.00512.61
7.2.60.0030.01216.85
7.2.00.0000.01419.83
7.1.200.0000.00816.04
7.1.100.0030.00718.21
7.1.70.0000.00717.24
7.1.60.0170.00719.40
7.1.50.0060.00917.18
7.1.00.0030.07722.39
7.0.200.0000.00816.91
7.0.140.0030.07722.06
7.0.110.0200.07321.86
7.0.100.0030.04021.88
7.0.90.0030.04021.87
7.0.80.0030.04721.86
7.0.70.0100.04321.73
7.0.60.0030.04021.83
7.0.50.0000.04021.89
7.0.40.0030.04719.66
7.0.30.0100.03019.71
7.0.20.0030.04019.70
7.0.10.0070.03319.67
7.0.00.0030.03719.71
5.6.280.0030.07021.00
5.6.260.0030.07320.49
5.6.250.0030.04020.65
5.6.240.0000.04720.57
5.6.230.0000.04320.69
5.6.220.0000.03720.46
5.6.210.0100.03020.71
5.6.200.0000.04320.63
5.6.190.0100.03320.62
5.6.180.0000.04320.61
5.6.170.0030.03320.55
5.6.160.0070.03720.66
5.6.150.0070.03720.86
5.6.140.0100.03320.64
5.6.130.0000.04320.69
5.6.120.0130.03020.62
5.6.110.0000.04320.58
5.6.100.0000.04320.60
5.6.90.0000.07320.57
5.6.80.0030.04719.94
5.6.70.0000.04020.10
5.6.60.0030.05020.01
5.6.50.0030.05720.00
5.6.40.0030.05020.03
5.6.30.0070.08319.96
5.6.20.0070.07320.01
5.6.10.0070.06719.98
5.6.00.0100.06720.04
5.5.380.0030.03717.54
5.5.370.0030.03717.56
5.5.360.0070.03317.68
5.5.350.0000.04317.65
5.5.340.0100.03018.07
5.5.330.0000.07017.93
5.5.320.0030.04717.83
5.5.310.0070.03318.10
5.5.300.0030.05018.08
5.5.290.0030.04018.13
5.5.280.0030.04018.10
5.5.270.0070.04718.06
5.5.260.0000.04318.25
5.5.250.0030.04017.90
5.5.240.0030.03317.48
5.5.230.0070.04717.29
5.5.220.0030.03717.51
5.5.210.0070.03717.31
5.5.200.0000.07717.58
5.5.190.0070.07317.46
5.5.180.0030.07317.26
5.5.160.0070.04017.59
5.5.150.0070.06717.42
5.5.140.0070.04017.27
5.5.130.0070.06017.48
5.5.120.0070.07317.48
5.5.110.0030.07317.25
5.5.100.0070.07017.48
5.5.90.0070.07317.37
5.5.80.0000.08017.30
5.5.70.0030.05017.34
5.5.60.0070.07717.46
5.5.50.0000.04017.29
5.5.40.0000.07717.38
5.5.30.0030.07017.29
5.5.20.0030.07717.33
5.5.10.0100.07017.07
5.5.00.0030.03717.16
5.4.450.0000.04019.42
5.4.440.0030.04319.27
5.4.430.0000.04019.63
5.4.420.0000.04019.33
5.4.410.0130.03019.38
5.4.400.0070.05719.23
5.4.390.0030.03718.99
5.4.380.0000.04019.32
5.4.370.0000.06319.24
5.4.360.0100.06319.33
5.4.350.0030.07019.09
5.4.340.0000.07319.03
5.4.320.0000.07719.16
5.4.310.0030.07719.19
5.4.300.0000.07718.94
5.4.290.0000.06319.18
5.4.280.0030.07319.06
5.4.270.0030.04319.01
5.4.260.0030.07719.01
5.4.250.0130.06319.00
5.4.240.0070.08019.23
5.4.230.0070.06719.00
5.4.220.0030.04719.16
5.4.210.0030.08018.98
5.4.200.0070.05019.33
5.4.190.0070.07319.17
5.4.180.0000.08019.17
5.4.170.0000.04319.32
5.4.160.0030.03719.00
5.4.150.0130.07019.16
5.4.140.0030.06016.39
5.4.130.0030.07316.63
5.4.120.0070.04016.50
5.4.110.0070.06316.60
5.4.100.0030.07316.65
5.4.90.0030.07316.57
5.4.80.0000.04716.39
5.4.70.0030.05716.52
5.4.60.0070.06716.29
5.4.50.0070.07016.28
5.4.40.0000.04016.59
5.4.30.0230.05316.47
5.4.20.0070.07316.38
5.4.10.0100.04316.55
5.4.00.0030.05315.91
5.3.290.0070.07314.80
5.3.280.0030.06314.57
5.3.270.0100.05314.69
5.3.260.0000.05714.74
5.3.250.0000.06714.73
5.3.240.0030.05714.59
5.3.230.0030.07714.73
5.3.220.0030.07714.57
5.3.210.0000.04714.43
5.3.200.0000.08314.57
5.3.190.0100.06714.60
5.3.180.0070.05714.78
5.3.170.0030.07314.56
5.3.160.0070.03714.51
5.3.150.0030.07314.55
5.3.140.0030.04014.78
5.3.130.0000.07714.54
5.3.120.0100.06714.55
5.3.110.0070.03714.62
5.3.100.0030.07314.02
5.3.90.0100.06714.02
5.3.80.0070.04314.02
5.3.70.0100.06314.09
5.3.60.0070.06314.01
5.3.50.0070.04013.80
5.3.40.0070.04013.90
5.3.30.0030.05014.03
5.3.20.0030.07713.66
5.3.10.0100.06713.76
5.3.00.0130.06713.78
5.2.170.0070.06311.91
5.2.160.0030.06311.91
5.2.150.0070.02711.91
5.2.140.0070.06011.91
5.2.130.0070.04011.91
5.2.120.0030.06311.91
5.2.110.0030.04011.91
5.2.100.0000.06711.91
5.2.90.0100.05011.91
5.2.80.0070.06311.91
5.2.70.0030.05311.91
5.2.60.0070.05011.91
5.2.50.0070.04011.91
5.2.40.0100.04711.91
5.2.30.0000.03711.91
5.2.20.0000.05011.91
5.2.10.0030.06011.91
5.2.00.0030.06711.91
5.1.60.0070.02711.91
5.1.50.0130.03311.91
5.1.40.0070.04311.91
5.1.30.0000.03311.91
5.1.20.0070.05311.91
5.1.10.0000.04011.91
5.1.00.0070.03311.91
5.0.50.0100.01711.91
5.0.40.0070.03711.91
5.0.30.0070.03011.91
5.0.20.0030.02011.91
5.0.10.0000.02711.91
5.0.00.0000.02711.91
4.4.90.0070.03311.91
4.4.80.0070.03011.91
4.4.70.0030.03711.91
4.4.60.0000.04011.91
4.4.50.0030.03311.91
4.4.40.0000.05011.91
4.4.30.0030.02711.91
4.4.20.0000.03711.91
4.4.10.0030.03311.91
4.4.00.0000.03011.91
4.3.110.0070.02711.91
4.3.100.0000.02711.91
4.3.90.0000.03011.91
4.3.80.0000.03711.91
4.3.70.0030.02311.91
4.3.60.0070.03011.91
4.3.50.0070.02711.91
4.3.40.0000.05311.91
4.3.30.0000.03711.91
4.3.20.0000.02011.91
4.3.10.0000.03711.91
4.3.00.0000.03011.91