3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = "I am a thing, I have the phrase testing in me!"; $criteria = array( 'type' => 'irc', 'function' => 'strpos', 'params' => array( '$input;', '"testing";' ) ); $params = array(); foreach($criteria['params'] as $param){ $params[] = eval($param); } print_r($params);
based on sALoD

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.10.0040.01116.00
7.3.00.0120.00716.24
7.2.130.0100.00516.48
7.2.120.0080.01016.80
7.2.110.0100.00616.57
7.2.100.0030.00816.79
7.2.90.0070.00616.75
7.2.80.0060.00516.79
7.2.70.0080.01016.63
7.2.60.0040.00916.77
7.2.50.0050.00816.90
7.2.40.0120.00016.87
7.2.30.0150.00716.63
7.2.20.0100.00616.77
7.2.10.0130.00216.66
7.2.00.0040.00917.68
7.1.250.0060.00815.44
7.1.240.0090.00315.76
7.1.230.0160.00015.61
7.1.220.0030.00715.98
7.1.210.0060.01015.74
7.1.200.0050.00915.76
7.1.190.0070.00715.55
7.1.180.0070.01115.74
7.1.170.0090.00915.61
7.1.160.0110.00716.02
7.1.150.0120.00615.57
7.1.140.0140.00315.48
7.1.130.0060.00915.77
7.1.120.0030.00715.72
7.1.110.0090.00915.87
7.1.100.0060.00716.76
7.1.90.0070.01015.73
7.1.80.0060.00915.55
7.1.70.0040.00716.46
7.1.60.0110.00917.70
7.1.50.0070.01516.32
7.1.40.0100.00315.80
7.1.30.0080.00815.41
7.1.20.0120.00415.45
7.1.10.0000.01115.65
7.1.00.0060.04219.09
7.0.330.0060.00615.42
7.0.320.0030.01015.53
7.0.310.0080.00615.09
7.0.300.0100.00615.42
7.0.290.0100.00715.32
7.0.280.0060.01015.29
7.0.270.0060.00615.44
7.0.260.0040.01115.30
7.0.250.0110.00315.12
7.0.240.0130.00315.13
7.0.230.0100.00715.21
7.0.220.0030.00915.46
7.0.210.0110.00415.32
7.0.200.0070.00515.96
7.0.190.0040.01215.18
7.0.180.0110.00715.46
7.0.170.0110.00415.20
7.0.160.0060.01015.41
7.0.150.0100.00314.82
7.0.140.0050.03018.50
7.0.130.0030.00915.09
7.0.120.0070.01015.35
7.0.110.0110.00715.42
7.0.100.0110.00615.43
7.0.90.0140.00015.34
7.0.80.0100.00715.54
7.0.70.0120.00415.50
7.0.60.0110.03917.65
7.0.50.0060.02716.55
7.0.40.0110.03816.71
7.0.30.0190.03116.87
7.0.20.0160.02816.84
7.0.10.0070.04916.70
7.0.00.0050.04016.92
5.6.380.0040.01114.32
5.6.370.0120.00414.20
5.6.360.0090.00613.97
5.6.350.0150.00314.02
5.6.340.0110.00414.33
5.6.330.0100.01014.08
5.6.320.0030.01014.49
5.6.310.0030.01314.45
5.6.300.0090.00914.44
5.6.290.0030.00614.20
5.6.280.0080.03617.66
5.6.270.0110.01114.53
5.6.260.0110.00614.39
5.6.250.0080.00814.34
5.6.240.0080.00814.49
5.6.230.0060.00813.99
5.6.220.0050.00914.23
5.6.210.0140.03317.51
5.6.200.0080.04516.15
5.6.190.0090.04017.30
5.6.180.0370.03717.42
5.6.170.0130.04517.42
5.6.160.0100.03317.49
5.6.150.0090.04516.29
5.6.140.0060.02416.21
5.6.130.0100.04716.20
5.6.120.0100.04417.74
5.6.110.0110.02417.70
5.6.100.0120.03017.65
5.6.90.0020.04017.76
5.6.80.0130.04017.36
5.6.70.0040.01514.44
5.6.60.0060.00614.04
5.6.50.0140.00414.38
5.6.40.0130.00314.43
5.6.30.0000.01414.28
5.6.20.0000.01214.23
5.6.10.0030.01014.32
5.6.00.0100.00313.96
5.5.380.0040.00411.16
5.5.370.0000.01010.90
5.5.360.0040.00411.26
5.5.350.0200.03015.66
5.5.340.0050.04514.61
5.5.330.0080.03315.83
5.5.320.0060.04515.74
5.5.310.0210.04115.86
5.5.300.0080.02814.60
5.5.290.0050.04314.43
5.5.280.0080.03916.03
5.5.270.0050.02316.01
5.5.260.0030.03315.98
5.5.250.0090.03815.81
5.5.240.0070.02315.58
5.5.230.0040.00711.29
5.5.220.0050.00510.90
5.5.210.0040.00810.98
5.5.200.0030.01010.90
5.5.190.0070.00410.95
5.5.180.0080.00011.25
5.5.170.0060.00610.90
5.5.160.0060.00210.90
5.5.150.0060.00610.98
5.5.140.0110.00010.98
5.5.130.0060.00611.07
5.5.120.0070.00211.13
5.5.110.0060.00310.91
5.5.100.0080.00311.23
5.5.90.0060.00911.35
5.5.80.0120.00011.18
5.5.70.0000.01110.99
5.5.60.0070.00411.25
5.5.50.0100.00310.90
5.5.40.0050.00810.94
5.5.30.0080.00310.90
5.5.20.0090.00310.90
5.5.10.0000.01310.90
5.5.00.0070.00210.90
5.4.450.0250.03515.34
5.4.440.0400.02815.12
5.4.430.0540.03115.25
5.4.420.0500.03215.27
5.4.410.0350.03215.15
5.4.400.0550.02515.14
5.4.390.0230.02714.74
5.4.380.0110.03514.74
5.4.370.0220.03214.83
5.4.360.0240.03514.98
5.4.350.0140.03515.00
5.4.340.0170.04014.91
5.4.330.0110.00011.08
5.4.320.0080.04414.72
5.4.310.0170.03915.09
5.4.300.0150.03914.97
5.4.290.0220.03414.91
5.4.280.0160.03214.94
5.4.270.0170.03614.98
5.4.260.0240.02914.74
5.4.250.0150.03914.90
5.4.240.0130.04214.96
5.4.230.0120.03415.08
5.4.220.0120.03314.78
5.4.210.0190.02614.72
5.4.200.0150.02513.81
5.4.190.0160.02915.05
5.4.180.0120.03114.83
5.4.170.0160.03115.00
5.4.160.0150.03414.95
5.4.150.0180.02714.71
5.4.140.0150.03713.80
5.4.130.0160.02813.81
5.4.120.0160.02613.59
5.4.110.0080.03313.69
5.4.100.0160.02513.56
5.4.90.0200.03213.75
5.4.80.0120.03013.78
5.4.70.0180.02813.75
5.4.60.0150.03813.85
5.4.50.0150.02713.74
5.4.40.0190.02413.59
5.4.30.0180.02413.71
5.4.20.0110.03113.69
5.4.10.0150.02813.74
5.4.00.0120.03013.47
5.3.290.0100.03412.83
5.3.280.0140.02912.81
5.3.270.0080.03512.77
5.3.260.0180.02612.78
5.3.250.0160.03712.84
5.3.240.0120.03112.77
5.3.230.0120.03212.80
5.3.220.0200.02512.76
5.3.210.0140.03012.80
5.3.200.0150.03412.78
5.3.190.0160.02812.79
5.3.180.0070.03412.82
5.3.170.0120.03712.72
5.3.160.0140.02812.84
5.3.150.0110.03412.84
5.3.140.0140.03312.84
5.3.130.0110.03412.73
5.3.120.0190.02712.80
5.3.110.0210.03612.73
5.3.100.0100.03512.53
5.3.90.0150.03312.47
5.3.80.0050.03812.45
5.3.70.0090.04112.49
5.3.60.0150.02912.45
5.3.50.0170.02912.43
5.3.40.0160.03112.47
5.3.30.0190.02212.40
5.3.20.0150.02312.36
5.3.10.0040.03712.36
5.3.00.0120.03312.32
5.2.170.0110.02311.03
5.2.160.0090.02311.12
5.2.150.0090.02411.07
5.2.140.0080.03211.02
5.2.130.0140.02011.05
5.2.120.0130.01811.01
5.2.110.0100.03011.10
5.2.100.0130.02411.05
5.2.90.0130.02511.01
5.2.80.0170.02211.05
5.2.70.0070.02811.03
5.2.60.0140.01910.99
5.2.50.0050.02811.01
5.2.40.0120.02210.97
5.2.30.0070.02310.93
5.2.20.0130.02111.02
5.2.10.0140.02210.88
5.2.00.0050.02710.85
5.1.60.0090.02110.45
5.1.50.0110.01510.54
5.1.40.0150.01710.49
5.1.30.0130.02310.70
5.1.20.0060.02710.66
5.1.10.0150.02010.55
5.1.00.0090.02710.54
5.0.50.0160.0129.71
5.0.40.0100.0189.67
5.0.30.0070.0229.55
5.0.20.0050.0199.60
5.0.10.0060.0159.55
5.0.00.0030.0269.54
4.4.90.0060.0148.40
4.4.80.0030.0158.39
4.4.70.0050.0158.39
4.4.60.0060.0138.39
4.4.50.0000.0248.41
4.4.40.0050.0198.41
4.4.30.0050.0138.39
4.4.20.0050.0138.42
4.4.10.0060.0158.42
4.4.00.0030.0228.42
4.3.110.0080.0128.37
4.3.100.0080.0108.37
4.3.90.0050.0138.38
4.3.80.0060.0198.34
4.3.70.0050.0128.37
4.3.60.0050.0128.35
4.3.50.0100.0108.35
4.3.40.0060.0188.34
4.3.30.0020.0158.03
4.3.20.0060.0118.03
4.3.10.0020.0158.03
4.3.00.0110.01312.76