3v4l.org

run code in 300+ PHP versions simultaneously
<?php $find = array( '/(\:\))|(\:\=\))|(\:\-\))/' => 'smile', '/(\:\()|(\:\=\()|(\:\-\()/' => 'sadsmile', '/(\:D)|(\:\=D)|(\:\-D)/i' => 'bigsmile', '/(8\))|(8\=\))|(8\-\))|(B\))|(B\=\))|(B\-\))|(\(cool\))' => 'cool', '/(\:o)|(\:\=o)|(\:\-o)/i' => 'wink', '/(\;\()|(\;\-\()|(\;\=\()/' => 'crying', '/(\(sweat\))|(\(\:\|)/i' => 'sweating', '/(\:\|)|(\:\=\|)|(\:\-\|)/' => 'speechless', '/(\:\*)|(\:\=\*)|(\:\-\*)/' => 'kiss', '/:P:=P:-P/i' => 'tongueout', '(\(blush\))|(\:\$)|(\:\-\$)|(\:\=\$)|(\:\"\>)/i' => 'blush', '/(\:\^\))/' => 'wondering', '/(\|\-\))|(\I\-\))|(\I\=\))|(\(snooze\))/i' => 'sleepy', '/(\|\()|(\|\-\()|(\|\=\()/' => 'dull', '/(\(inlove\)/i' => 'inlove', '/(\]\:\))|(>\:\))|(\(grin\))/i' => 'evilgrin', '/(\(talk\))/i' => 'talking', '/(\(yawn\))|(\|\-\(\))/i' => 'yawn', '/(\(puke\))|(\:\&)|(\:\-\&)|(\:\=\&)/i' => 'puke', '/(\(doh\))/i' => 'doh', '/(\:\@)|(\:\-\@)|(\:\=\@)|(\x\()|(\x\-\()|(\x\=\()/i' => 'angry', '/(\(wasntme\))/i' => 'wasntme', '/(\(party\))/i' => 'party', '/(\:S)|(\:\-S)|(\:\=S)/i' => 'worried', '/(\(mm\))|(\(mmm\))/i' => 'mmm', '/(8\-\|)|(B\-\|)|(8\|)|(B\|)|(8\=\|)|(B\=\|)|(\(nerd\))/i' => 'nerd', '/(\:x)|(\:\-x)|(\:\=x)|(\:\#)|(\:\-\#)|(\:\=\#)/i' => 'lipssealed', '/(\(hi\))/i' => 'hi', '/(\(call\))/i' => 'call', '/(\(devil\))/i' => 'devil', '/(\(angel\))/i' => 'angel', '/(\(envy\))/i' => 'envy', '/(\(wait\))/i' => 'wait', '/(\(bear\))|(\(hug\))/i' => 'bear', '/(\(makeup\))|(\(kate\))/i' => 'makeup', '/(\(giggle\))|(\(chuckle\))/i' => 'coveredlaugh', '/(\(clap\))|(\(applaud\))|(\(applause\))/i' => 'clapping', '/(\(think\))|(\:\?)|(\:\-\?)|(\:\=\?)/i' => 'thinking', '/(\(bow\)/i' => 'bow', '/(rofl)|(\(rofl\))/i' => 'rofl', '/(\(whew\))|(\(phew\))/i' => 'whew', '/(\(happy\))/i' => 'happy', '/(\(smirk\))/i' => 'smirking', '/(\(nod\))/i' => 'nodding', '/(\(shake\))/i' => 'shaking', '/(\(punch\))/i' => 'punch', '/(\(emo\))/i' => 'emo', '/(\(y\))|(\(ok\))/i' => 'yes', '/(\(n\)))/i' => 'no', '/(\(handshake\))/i' => 'handshake', '/(\(skype\))|(\(ss\))/i' => 'skype', '/(\(h\))|(\(l\))/i' => 'heart', '/(\(u\))/i' => 'brokenheart', '/(\(e\))|(\(m\))/i' => 'mail', '/(\(f\))/i' => 'flower', '/(\(rain\))|(\(london\))|(\(st\))/i' => 'rain', '/(\(sun\))/i' => 'sun', '/(\(o\))|(\(time\))|(\(clock\))/i' => 'clock', '/(\(8\))|(\(music\))/i' => 'music', '/(\(\~\))|(\(film\))|(\(movie\))/i' => 'movie', '/(\(mp\))|(\(ph\))|(\(phone\))|(\(mobile\))|(\(cell\))/i' => 'phone', '/(\(coffee\))/i' => 'coffee', '/(\(pizza\))|(\(pi\))|(\(za\))/i' => 'pizza', '/(\(cash\))|(\(mo\))|(\(\$\))/i' => 'cash', '/(\(muscle\))|(\(flex\))/i' => 'muscle', '/(\(\^\))|(\(cake\))/i' => 'cake', '/(\(beer\))/i' => 'beer', '/(\(d\))/i' => 'drink', '/(\(dance\))|(\\\o\/)|(\\\:D\/)/i' => 'dance', '/(\(ninja\))/i' => 'ninja', '/(\(\*\))|(\(star\))/i' => 'star', '/(\(mooning\))/i' => 'mooning', '/(\(finger\))/i' => 'finger', '/(\(smoking\))|(\(smoke\))|(\(ci\))|(\(cig\))/i' => 'smoking', '/(\(drunk\))/i' => 'drunk', '/(\(bandit\))/i' => 'bandit', '/(\(toivo\))/i' => 'toivo', '/(\(rock\))/i' => 'rock', '/(\(headbang\))|(\(banghead\))/i' => 'headbang', '/(\(bug\))/i' => 'bug', '/(\(fubar\))/i' => 'fubar', '/(\(poolparty\))/i' => 'poolparty', '/(\(swear\))/i' => 'swear', '/(\(tmi\))/i' => 'tmi', '/(\(heidy\))/i' => 'heidy', '/(\(malthe\))/i' => 'malthe', '/(\(tauri\))/i' => 'tauri', '/(\(priidu\))/i' => 'priidu' );

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.60.0080.00818.18
8.3.50.0100.00821.15
8.3.40.0150.00618.84
8.3.30.0150.00018.96
8.3.20.0080.00020.33
8.3.10.0030.00522.04
8.3.00.0080.00022.52
8.2.180.0070.00716.32
8.2.170.0140.00022.96
8.2.160.0040.01118.94
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0100.00017.63
8.2.110.0030.00622.11
8.2.100.0110.00019.34
8.2.90.0080.00019.25
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00717.80
8.2.30.0000.00818.06
8.2.20.0040.00417.48
8.2.10.0040.00417.70
8.2.00.0070.00317.63
8.1.280.0040.01125.92
8.1.270.0050.00322.19
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.83
8.1.230.0070.00419.24
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0050.00517.23
8.1.190.0030.00617.40
8.1.180.0050.00318.63
8.1.170.0080.00318.54
8.1.160.0040.00422.05
8.1.150.0040.00418.53
8.1.140.0020.00517.44
8.1.130.0000.00717.83
8.1.120.0030.00517.32
8.1.110.0000.00817.23
8.1.100.0070.00017.32
8.1.90.0080.00017.37
8.1.80.0040.00417.29
8.1.70.0080.00017.36
8.1.60.0080.00017.43
8.1.50.0000.00817.38
8.1.40.0060.00317.35
8.1.30.0000.00817.54
8.1.20.0040.00417.56
8.1.10.0070.00317.39
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0020.00516.99
8.0.280.0060.00318.39
8.0.270.0030.00317.24
8.0.260.0030.00316.73
8.0.250.0030.00316.86
8.0.240.0070.00316.81
8.0.230.0000.00716.79
8.0.220.0000.00816.84
8.0.210.0000.00816.81
8.0.200.0030.00316.89
8.0.190.0040.00416.90
8.0.180.0000.00716.93
8.0.170.0040.00416.75
8.0.160.0030.00316.64
8.0.150.0000.00816.87
8.0.140.0030.00616.86
8.0.130.0030.00313.33
8.0.120.0040.00416.82
8.0.110.0070.00016.80
8.0.100.0030.00516.70
8.0.90.0000.00716.86
8.0.80.0150.00016.73
8.0.70.0040.00416.91
8.0.60.0050.00216.81
8.0.50.0020.00516.66
8.0.30.0050.01316.92
8.0.20.0120.00617.40
8.0.10.0000.00716.99
8.0.00.0120.01016.72
7.4.330.0000.00515.00
7.4.320.0000.00616.49
7.4.300.0030.00316.40
7.4.290.0080.00016.54
7.4.280.0000.00716.57
7.4.270.0040.00316.48
7.4.260.0000.00816.43
7.4.250.0050.00216.52
7.4.240.0060.00116.48
7.4.230.0030.00516.65
7.4.220.0160.00416.59
7.4.210.0070.00716.49
7.4.200.0050.00216.57
7.4.190.0000.00816.43
7.4.160.0140.00516.52
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0130.00616.54
7.4.120.0050.01216.35
7.4.110.0040.01416.51
7.4.100.0100.00716.46
7.4.90.0150.00616.54
7.4.80.0060.01619.39
7.4.70.0130.00416.25
7.4.60.0080.00816.48
7.4.50.0050.00316.49
7.4.40.0060.00922.77
7.4.30.0120.00416.39
7.4.00.0070.00714.82
7.3.330.0030.00313.05
7.3.320.0030.00312.95
7.3.310.0000.00716.15
7.3.300.0000.00716.16
7.3.290.0030.01016.13
7.3.280.0090.00716.10
7.3.270.0100.00717.40
7.3.260.0160.00016.21
7.3.250.0080.00916.50
7.3.240.0080.00916.20
7.3.230.0070.01116.39
7.3.210.0030.01916.31
7.3.200.0070.01016.35
7.3.190.0090.01416.48
7.3.180.0090.00616.13
7.3.170.0060.00916.27
7.3.160.0100.00616.13
7.3.120.0080.00814.70
7.2.330.0130.00316.34
7.2.320.0030.01416.23
7.2.310.0080.00816.31
7.2.300.0120.00916.52
7.2.290.0100.01016.36
7.2.00.0040.00819.36
7.1.200.0070.00715.51
7.1.70.0000.01416.74
7.1.60.0030.00716.95
7.1.50.0260.01334.74
7.1.00.0030.05022.57
7.0.200.0070.00716.61
7.0.140.0000.07722.21
7.0.60.0000.08320.02
7.0.50.0000.08317.91
7.0.40.0070.04320.21
7.0.30.0300.04020.33
7.0.20.0130.06320.16
7.0.10.0300.08020.00
7.0.00.0070.05320.17
5.6.280.0070.07021.18
5.6.210.0070.08320.56
5.6.200.0130.08318.11
5.6.190.0030.06720.61
5.6.180.4200.04320.63
5.6.170.0300.04320.52
5.6.160.0070.08320.46
5.6.150.0130.06318.25
5.6.140.0030.04018.13
5.6.130.0030.08718.22
5.6.120.0000.04321.16
5.6.110.0070.05321.15
5.6.100.0130.08021.05
5.6.90.0170.06321.02
5.6.80.0070.08020.52
5.6.70.0130.03020.53
5.5.350.0100.07020.42
5.5.340.0130.07318.00
5.5.330.0100.06020.40
5.5.320.0200.05720.29
5.5.310.0270.07320.28
5.5.300.0030.04318.07
5.5.290.0070.07317.93
5.5.280.0100.07720.91
5.5.270.0100.07720.68
5.5.260.0070.06320.97
5.5.250.0070.03720.73
5.5.240.0170.07020.30
5.4.450.0100.06019.45
5.4.440.0600.06019.47
5.4.430.0730.05719.13
5.4.420.0770.05019.47
5.4.410.0400.05319.00
5.4.400.0300.05318.82
5.4.390.0470.05718.52
5.4.380.0300.04718.69
5.4.370.0170.05018.65
5.4.360.0070.06018.58
5.4.350.0170.05318.70
5.4.340.0200.04718.69
5.4.320.0060.03712.52
5.4.310.0110.04112.52
5.4.300.0040.04712.52
5.4.290.0080.04512.52
5.4.280.0060.04412.42
5.4.270.0120.03012.41
5.4.260.0170.06018.68
5.4.250.0100.07018.78
5.4.240.0130.07018.99
5.4.230.0030.07718.68
5.4.220.0200.07018.93
5.4.210.0170.05719.02
5.4.200.0100.05318.83
5.4.190.0070.06318.89
5.4.180.0070.05018.89
5.4.170.0070.05719.00
5.4.160.0100.05718.77
5.4.150.0070.05318.98
5.4.140.0100.05016.41
5.4.130.0030.06016.40
5.4.120.0070.07316.43
5.4.110.0100.06316.41
5.4.100.0130.05016.34
5.4.90.0000.05316.41
5.4.80.0070.07316.44
5.4.70.0070.07016.48
5.4.60.0100.04716.51
5.4.50.0000.06316.21
5.4.40.0130.06316.52
5.4.30.0100.05716.38
5.4.20.0170.06716.28
5.4.10.0100.07316.38
5.4.00.0130.04715.68
5.3.290.0040.04212.80
5.3.280.0100.06714.63
5.3.270.0070.07714.64
5.3.260.0030.06014.72
5.3.250.0100.06014.64
5.3.240.0200.04314.65
5.3.230.0030.05714.54
5.3.220.0070.05714.43
5.3.210.0130.05314.43
5.3.200.0030.05714.44
5.3.190.0130.06714.59
5.3.180.0170.06714.46
5.3.170.0030.06314.46
5.3.160.0070.06714.46
5.3.150.0230.05714.60
5.3.140.0070.06714.60
5.3.130.0200.08014.58
5.3.120.0030.08014.60
5.3.110.0170.06714.73
5.3.100.0170.04713.93
5.3.90.0130.04313.96
5.3.80.0100.05014.11
5.3.70.0100.05713.96
5.3.60.0070.05313.94
5.3.50.0130.04314.00
5.3.40.0000.06313.75
5.3.30.0030.05014.09
5.3.20.0100.04713.67
5.3.10.0270.05013.38
5.3.00.0030.05013.75

preferences:
43.48 ms | 401 KiB | 5 Q