3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "You have been assigned to the job #3 Megastar 4(01923033) OSD jackpot needs adjusting. The job is for Icon's Stadium Bar - GMV1028. The job machines are - 01980414 , - 01923033 , - 07993682 This job has a priority of Non-Critical Fault / Medium. The job is scheduled for Monday, 14 July, 2014 at 02:29 PM."; $sn ='01923033'; $regx= "/$sn(.*?)\The job is for/s"; //print $regx; //print " test "; $matches = array(); $t = preg_match($regx, $text, $matches); print_r($matches[1]); $regx2= "/The job is for (.*?)\-/s"; $matches2 = array(); $t = preg_match($regx2, $text, $matches2); print_r($matches2[1]); $text= preg_replace("/#/", "KK", $text); print_r($text);

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.40.0110.00418.90
8.3.30.0150.00319.09
8.3.20.0070.00020.38
8.3.10.0070.00723.65
8.3.00.0040.00419.68
8.2.170.0070.00722.96
8.2.160.0160.00320.53
8.2.150.0040.01524.18
8.2.140.0000.00724.66
8.2.130.0030.01226.16
8.2.120.0030.00519.61
8.2.110.0090.00022.19
8.2.100.0120.00017.91
8.2.90.0040.00419.34
8.2.80.0040.00417.97
8.2.70.0060.00318.00
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0040.00419.46
8.2.30.0050.00318.42
8.2.20.0070.00017.89
8.2.10.0000.00718.17
8.2.00.0040.00417.86
8.1.270.0060.00323.68
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0040.00423.84
8.1.230.0040.00719.18
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00717.21
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0000.00818.62
8.1.160.0040.00421.88
8.1.150.0000.00718.79
8.1.140.0040.00417.57
8.1.130.0040.00417.84
8.1.120.0000.00717.65
8.1.110.0000.00817.55
8.1.100.0000.00717.47
8.1.90.0000.00717.55
8.1.80.0000.00717.59
8.1.70.0030.00317.51
8.1.60.0030.00617.66
8.1.50.0040.00417.55
8.1.40.0030.00617.58
8.1.30.0080.00017.65
8.1.20.0070.00017.74
8.1.10.0040.00417.76
8.1.00.0070.00317.72
8.0.300.0000.00718.77
8.0.290.0030.00617.00
8.0.280.0050.00218.49
8.0.270.0000.00717.32
8.0.260.0030.00317.35
8.0.250.0030.00317.23
8.0.240.0040.00417.20
8.0.230.0030.00317.25
8.0.220.0040.00417.14
8.0.210.0070.00017.13
8.0.200.0030.00317.18
8.0.190.0000.00817.10
8.0.180.0040.00417.00
8.0.170.0050.00317.15
8.0.160.0070.00017.12
8.0.150.0040.00417.03
8.0.140.0080.00316.98
8.0.130.0030.00313.53
8.0.120.0000.00817.13
8.0.110.0030.00517.07
8.0.100.0000.00717.02
8.0.90.0000.00717.02
8.0.80.0120.00317.11
8.0.70.0000.00716.98
8.0.60.0050.00217.19
8.0.50.0000.00816.99
8.0.30.0140.00517.07
8.0.20.0120.00717.46
8.0.10.0040.00417.13
8.0.00.0140.00417.10
7.4.330.0030.00315.00
7.4.320.0030.00316.55
7.4.300.0030.00316.78
7.4.290.0030.00316.78
7.4.280.0040.00816.69
7.4.270.0040.00416.80
7.4.260.0000.00716.68
7.4.250.0000.00816.64
7.4.240.0020.00516.71
7.4.230.0030.00316.81
7.4.220.0150.00816.82
7.4.210.0110.00316.79
7.4.200.0000.00716.68
7.4.160.0110.00816.64
7.4.150.0090.00917.40
7.4.140.0080.01317.86
7.4.130.0090.01016.81
7.4.120.0060.01116.71
7.4.110.0030.01216.64
7.4.100.0070.01016.55
7.4.90.0060.01016.70
7.4.80.0060.01519.39
7.4.70.0110.00616.59
7.4.60.0120.00816.83
7.4.50.0040.00416.61
7.4.40.0130.00616.81
7.4.30.0150.00016.69
7.4.10.0060.01015.30
7.4.00.0050.01115.23
7.3.330.0060.00013.13
7.3.320.0030.00313.10
7.3.310.0060.00016.20
7.3.300.0000.00716.37
7.3.290.0060.00916.43
7.3.280.0080.00816.39
7.3.270.0100.00717.40
7.3.260.0140.00316.87
7.3.250.0120.00816.48
7.3.240.0100.00716.83
7.3.230.0130.00316.41
7.3.210.0140.00316.77
7.3.200.0070.01619.39
7.3.190.0070.01116.64
7.3.180.0160.00316.70
7.3.170.0060.01016.36
7.3.160.0000.01616.68
7.3.130.0040.00814.69
7.3.120.0070.00914.99
7.3.110.0090.00915.12
7.3.100.0070.00714.76
7.3.90.0000.01715.00
7.3.80.0000.00914.70
7.3.70.0040.01815.06
7.3.60.0000.01515.10
7.3.50.0030.01014.94
7.3.40.0000.01315.01
7.3.30.0070.00714.96
7.3.20.0090.00616.66
7.3.10.0080.00316.75
7.3.00.0100.00416.70
7.2.330.0120.00616.74
7.2.320.0170.00616.88
7.2.310.0140.00716.67
7.2.300.0120.00616.67
7.2.290.0000.02116.61
7.2.260.0130.00714.91
7.2.250.0060.01215.19
7.2.240.0100.00715.09
7.2.230.0060.01315.03
7.2.220.0100.00715.20
7.2.210.0060.01215.43
7.2.200.0030.01614.88
7.2.190.0070.01514.81
7.2.180.0100.00015.19
7.2.170.0070.00715.11
7.2.160.0060.00615.26
7.2.150.0130.00317.11
7.2.140.0040.01417.24
7.2.130.0090.00617.07
7.2.120.0070.01417.12
7.2.110.0110.00416.88
7.2.100.0070.00717.14
7.2.90.0100.00717.25
7.2.80.0110.00416.70
7.2.70.0040.01117.24
7.2.60.0070.00317.07
7.2.50.0030.00717.11
7.2.40.0000.01417.18
7.2.30.0050.00517.15
7.2.20.0100.00717.22
7.2.10.0030.00717.04
7.2.00.0070.00718.22
7.1.330.0070.00715.70
7.1.320.0090.00615.77
7.1.310.0070.01015.88
7.1.300.0040.01116.15
7.1.290.0080.00415.99
7.1.280.0000.01116.05
7.1.270.0120.00615.85
7.1.260.0030.01015.82
7.1.250.0120.00615.91
7.1.240.0040.01116.00
7.1.230.0040.01215.98
7.1.220.0070.00716.06
7.1.210.0040.01216.08
7.1.200.0060.00615.76
7.1.190.0070.00716.07
7.1.180.0000.00916.03
7.1.170.0000.01415.57
7.1.160.0030.00615.93
7.1.150.0000.00815.68
7.1.140.0080.00416.08
7.1.130.0000.01415.96
7.1.120.0060.00616.04
7.1.110.0120.00015.84
7.1.100.0040.00917.20
7.1.90.0110.00315.76
7.1.80.0000.01016.18
7.1.70.0070.00916.52
7.1.60.0110.01017.92
7.1.50.0030.01316.51
7.1.40.0100.00716.01
7.1.30.0030.01015.94
7.1.20.0070.00415.94
7.1.10.0000.01516.01
7.1.00.0000.04619.26
7.0.330.0030.01115.55
7.0.320.0030.01015.55
7.0.310.0090.00615.58
7.0.300.0070.00415.79
7.0.290.0060.00615.54
7.0.280.0060.00615.41
7.0.270.0030.00615.62
7.0.260.0060.00315.70
7.0.250.0040.00715.60
7.0.240.0140.00315.65
7.0.230.0100.00615.56
7.0.220.0030.00615.80
7.0.210.0060.00915.28
7.0.200.0020.01016.20
7.0.190.0070.00715.38
7.0.180.0000.01515.69
7.0.170.0040.00815.55
7.0.160.0030.00615.59
7.0.150.0070.00715.60
7.0.140.0050.03818.88
7.0.130.0070.00715.34
7.0.120.0040.00815.68
7.0.110.0120.00315.77
7.0.100.0000.01015.41
7.0.90.0030.00615.61
7.0.80.0040.01115.46
7.0.70.0090.00615.61
7.0.60.0080.03917.67
7.0.50.0100.02316.84
7.0.40.0030.03516.91
7.0.30.0130.04416.79
7.0.20.0200.03316.87
7.0.10.0180.02816.93
7.0.00.0100.04416.90
5.6.400.0060.00914.25
5.6.390.0000.01614.48
5.6.380.0060.00314.39
5.6.370.0040.00714.33
5.6.360.0070.00714.64
5.6.350.0100.00714.56
5.6.340.0060.00314.77
5.6.330.0040.01114.17
5.6.320.0070.00714.60
5.6.310.0060.00614.57
5.6.300.0060.00914.17
5.6.290.0060.00314.61
5.6.280.0020.04417.82
5.6.270.0040.01114.34
5.6.260.0040.01114.37
5.6.250.0000.01514.50
5.6.240.0060.00514.48
5.6.230.0060.01314.46
5.6.220.0090.00914.50
5.6.210.0120.03717.53
5.6.200.0020.02816.13
5.6.190.0080.04617.68
5.6.180.0060.02717.43
5.6.170.0130.03717.40
5.6.160.0080.04417.49
5.6.150.0070.01816.24
5.6.140.0030.03016.22
5.6.130.0030.02816.31
5.6.120.0120.04017.72
5.6.110.0080.03417.73
5.6.100.0100.03317.71
5.6.90.0050.04717.64
5.6.80.0020.02617.47
5.6.70.0090.04117.63
5.6.60.0040.00714.38
5.6.50.0100.00314.57
5.6.40.0070.00714.62
5.6.30.0060.00614.16
5.6.20.0030.01014.11
5.6.10.0090.00614.36
5.6.00.0040.01214.54
5.5.380.0000.00914.57
5.5.370.0030.01014.62
5.5.360.0030.01614.53
5.5.350.0040.04317.32
5.5.340.0050.02516.22
5.5.330.0130.04017.30
5.5.320.0160.03817.34
5.5.310.0200.03817.35
5.5.300.0020.02816.17
5.5.290.0060.02816.24
5.5.280.0070.02217.49
5.5.270.0050.02817.70
5.5.260.0100.02717.59
5.5.250.0080.04017.49
5.5.240.0080.02717.28
5.5.230.0070.00714.07
5.5.220.0050.00314.46
5.5.210.0060.00614.32
5.5.200.0060.00614.30
5.5.190.0040.01114.28
5.5.180.0060.00814.41
5.5.170.0040.01113.98
5.5.160.0040.00414.47
5.5.150.0100.00314.47
5.5.140.0100.00314.43
5.5.130.0060.00314.35
5.5.120.0090.00614.24
5.5.110.0060.00314.30
5.5.100.0070.01014.09
5.5.90.0090.00314.40
5.5.80.0070.00714.11
5.5.70.0030.00714.55
5.5.60.0050.00514.34
5.5.50.0000.01714.42
5.5.40.0100.00714.34
5.5.30.0030.00714.11
5.5.20.0000.01514.38
5.5.10.0070.00714.11
5.5.00.0030.00914.32
5.4.450.0210.02427.93
5.4.440.0060.02127.91
5.4.430.0150.02527.88
5.4.420.0050.02527.87
5.4.410.0240.02227.87
5.4.400.0120.02027.87
5.4.390.0170.02827.87
5.4.380.0050.03315.26
5.4.370.0400.02715.32
5.4.360.0230.02715.28
5.4.350.0050.03415.23
5.4.340.0100.03215.33
5.4.330.0030.00511.96
5.4.320.0110.01812.21
5.4.310.0040.02312.21
5.4.300.0040.02312.21
5.4.290.0080.02112.20
5.4.280.0030.02412.15
5.4.270.0030.02112.15
5.4.260.0060.02212.15
5.4.250.0080.02112.15
5.4.240.0050.02112.15
5.4.230.0080.01712.15
5.4.220.0050.02112.15
5.4.210.0040.02112.15
5.4.200.0060.01912.15
5.4.190.0040.02112.14
5.4.180.0050.02112.14
5.4.170.0050.01912.15
5.4.160.0040.02212.15
5.4.150.0070.02012.15
5.4.140.0030.02411.99
5.4.130.0040.02211.98
5.4.120.0080.02511.96
5.4.110.0040.02211.96
5.4.100.0060.02011.96
5.4.90.0070.01911.96
5.4.80.0040.02011.96
5.4.70.0080.01611.96
5.4.60.0080.01811.96
5.4.50.0080.02111.96
5.4.40.0020.02411.95
5.4.30.0030.02211.95
5.4.20.0050.02011.95
5.4.10.0030.02311.95
5.4.00.0040.02811.70
5.3.290.0040.02512.38
5.3.280.0090.02012.33
5.3.270.0040.02412.34
5.3.260.0050.02312.34
5.3.250.0030.02212.34
5.3.240.0050.02112.34
5.3.230.0050.02412.33
5.3.220.0050.02212.32
5.3.210.0040.02612.32
5.3.200.0060.02212.32
5.3.190.0040.02312.32
5.3.180.0070.02212.31
5.3.170.0070.02312.31
5.3.160.0080.01912.31
5.3.150.0040.02312.32
5.3.140.0070.02012.31
5.3.130.0070.02312.31
5.3.120.0060.02212.31
5.3.110.0070.02112.31
5.3.100.0050.02112.04
5.3.90.0050.02012.02
5.3.80.0050.02112.02
5.3.70.0060.02112.02
5.3.60.0060.02012.01
5.3.50.0040.02111.98
5.3.40.0020.02311.98
5.3.30.0020.02211.96
5.3.20.0050.02111.85
5.3.10.0060.01911.83
5.3.00.0060.02011.82
5.2.170.0080.0279.20
5.2.160.0070.0279.20
5.2.150.0020.0379.20
5.2.140.0060.0369.19
5.2.130.0050.0289.15
5.2.120.0080.0269.15
5.2.110.0060.0289.16
5.2.100.0080.0339.15
5.2.90.0040.0299.15
5.2.80.0030.0369.14
5.2.70.0080.0359.15
5.2.60.0060.0289.10
5.2.50.0070.0279.07
5.2.40.0020.0319.04
5.2.30.0060.0289.02
5.2.20.0070.0269.02
5.2.10.0050.0278.92
5.2.00.0050.0308.79
5.1.60.0050.0248.07
5.1.50.0030.0268.07
5.1.40.0020.0308.04
5.1.30.0060.0278.39
5.1.20.0080.0278.41
5.1.10.0060.0248.14
5.1.00.0060.0238.14
5.0.50.0060.0186.63
5.0.40.0020.0206.49
5.0.30.0040.0306.30
5.0.20.0060.0176.27
5.0.10.0040.0246.25
5.0.00.0050.0296.24
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0050.0134.75
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0060.0254.71
4.4.30.0040.0164.76
4.4.20.0030.0154.84
4.4.10.0040.0144.85
4.4.00.0030.0244.76
4.3.110.0070.0114.67
4.3.100.0030.0154.66
4.3.90.0030.0144.63
4.3.80.0010.0264.58
4.3.70.0050.0124.63
4.3.60.0040.0134.63
4.3.50.0030.0154.63
4.3.40.0040.0284.53
4.3.30.0030.0153.29
4.3.20.0020.0153.27
4.3.10.0010.0163.22
4.3.00.0100.01343.77

preferences:
55.86 ms | 400 KiB | 5 Q