3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function _convertToCamelCase(array $matches) { return ucfirst($matches[1]); } $key = 'valami_underscored_cucc'; $keys = array( 'id' ); foreach ($keys as $key) { echo preg_replace_callback( '/_(\w)/', '_convertToCamelCase', $key); }
based on matgd

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.0290.00798.97
7.3.0rc30.0370.01016.84
7.3.0beta10.0000.01113.18
7.3.0alpha10.0060.00613.01
7.2.60.0100.00316.79
7.2.00.0030.01019.36
7.1.200.0060.00615.83
7.1.100.0070.00718.20
7.1.70.0110.00017.25
7.1.60.0130.00619.32
7.1.50.0070.01417.11
7.1.00.0030.07722.32
7.0.200.0000.00716.85
7.0.140.0030.06722.13
7.0.60.0100.08019.98
7.0.50.0100.03717.89
7.0.40.0130.08020.04
7.0.30.0170.04020.28
7.0.20.0230.07320.22
7.0.10.0230.06320.07
7.0.00.0030.07020.08
5.6.280.0030.07021.13
5.6.210.0000.08720.77
5.6.200.0030.04318.15
5.6.190.0130.08020.61
5.6.180.0530.07020.63
5.6.170.0200.04020.50
5.6.160.0070.08320.50
5.6.150.0000.05318.11
5.6.140.0030.08318.15
5.6.130.0070.03718.18
5.6.120.0000.09320.80
5.6.110.0070.04721.14
5.6.100.0070.08321.04
5.6.90.0030.06320.98
5.6.80.0030.08320.36
5.5.350.0130.09020.53
5.5.340.0030.04317.95
5.5.330.0170.04020.57
5.5.320.0370.05020.31
5.5.310.0230.05020.42
5.5.300.0100.07717.92
5.5.290.0030.04017.96
5.5.280.0100.08720.80
5.5.270.0070.07720.79
5.5.260.0000.04320.68
5.5.250.0000.06020.61
5.5.240.0100.06320.16
5.4.450.0270.06319.60
5.4.440.0830.06019.58
5.4.430.0630.05019.61
5.4.420.0730.05319.16
5.4.410.0870.05719.25
5.4.400.1000.06319.31
5.4.390.0730.05019.29
5.4.380.0330.06018.74
5.4.370.0400.06318.56
5.4.360.0470.06318.75
5.4.350.0370.06318.80
5.4.340.0400.04718.56
5.4.320.0050.04112.50
5.4.310.0050.03912.50
5.4.300.0020.04012.51
5.4.290.0080.03612.50
5.4.280.0050.03612.40
5.4.270.0080.03512.39
5.4.260.0070.04312.40
5.4.250.0110.03612.39
5.4.240.0040.03912.40
5.4.230.0040.04012.39
5.4.220.0100.03412.39
5.4.210.0050.03712.39
5.4.200.0050.03712.39
5.4.190.0030.03812.38
5.4.180.0060.03512.39
5.4.170.0050.04012.39
5.4.160.0070.04612.39
5.4.150.0050.03612.39
5.4.140.0030.04012.07
5.4.130.0040.03612.06
5.4.120.0060.04012.02
5.4.110.0070.03512.02
5.4.100.0070.03512.02
5.4.90.0080.04212.02
5.4.80.0080.03612.01
5.4.70.0060.04412.01
5.4.60.0060.04212.01
5.4.50.0070.03712.00
5.4.40.0090.04312.00
5.4.30.0050.04012.00
5.4.20.0060.03711.99
5.4.10.0060.04111.99
5.4.00.0040.03711.48
5.3.290.0050.04212.80
5.3.280.0050.04512.71
5.3.270.0060.04212.73
5.3.260.0110.04112.72
5.3.250.0090.04312.72
5.3.240.0040.03812.71
5.3.230.0040.04212.71
5.3.220.0080.03812.68
5.3.210.0100.03712.68
5.3.200.0050.04112.68
5.3.190.0060.04012.67
5.3.180.0040.03712.67
5.3.170.0060.03912.67
5.3.160.0140.03412.68
5.3.150.0050.03912.68
5.3.140.0030.03912.66
5.3.130.0060.03812.66
5.3.120.0040.04012.66
5.3.110.0040.04112.66
5.3.100.0060.03712.13
5.3.90.0050.03712.11
5.3.80.0060.03812.10
5.3.70.0040.03712.10
5.3.60.0090.04212.09
5.3.50.0080.03512.03
5.3.40.0050.04112.03
5.3.30.0110.03411.99
5.3.20.0060.03611.77
5.3.10.0050.03611.74
5.3.00.0080.03811.72
5.2.170.0090.0369.23
5.2.160.0070.0319.23
5.2.150.0060.0369.23
5.2.140.0060.0369.23
5.2.130.0040.0319.18
5.2.120.0060.0349.19
5.2.110.0080.0429.19
5.2.100.0060.0289.19
5.2.90.0070.0319.19
5.2.80.0070.0349.18
5.2.70.0040.0419.18
5.2.60.0040.0349.14
5.2.50.0080.0289.11
5.2.40.0040.0299.09
5.2.30.0080.0399.05
5.2.20.0050.0339.05
5.2.10.0070.0338.94
5.2.00.0080.0308.80
5.1.60.0050.0318.09
5.1.50.0060.0298.08
5.1.40.0050.0338.06
5.1.30.0050.0278.41
5.1.20.0050.0258.43
5.1.10.0030.0268.16
5.1.00.0090.0268.16
5.0.50.0040.0196.64
5.0.40.0030.0216.50
5.0.30.0030.0396.31
5.0.20.0050.0186.28
5.0.10.0040.0226.25
5.0.00.0030.0346.24
4.4.90.0040.0224.78
4.4.80.0030.0154.76
4.4.70.0020.0224.76
4.4.60.0010.0174.76
4.4.50.0040.0214.77
4.4.40.0020.0264.71
4.4.30.0030.0224.76
4.4.20.0020.0174.85
4.4.10.0040.0204.85
4.4.00.0030.0274.76
4.3.110.0040.0194.66
4.3.100.0050.0124.67
4.3.90.0010.0214.63
4.3.80.0030.0234.58
4.3.70.0050.0124.63
4.3.60.0030.0174.63
4.3.50.0030.0154.63
4.3.40.0050.0214.54
4.3.30.0010.0173.30
4.3.20.0030.0153.28
4.3.10.0020.0213.23
4.3.00.0100.0206.74