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("/#/", "", $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.60.0200.00316.63
8.3.50.0130.00622.11
8.3.40.0040.01119.09
8.3.30.0040.01119.13
8.3.20.0070.00020.33
8.3.10.0040.00423.48
8.3.00.0080.00019.68
8.2.180.0160.00317.00
8.2.170.0090.00622.96
8.2.160.0100.00320.47
8.2.150.0060.01224.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00319.73
8.2.110.0030.00622.28
8.2.100.0060.00618.03
8.2.90.0040.00419.25
8.2.80.0040.00418.00
8.2.70.0030.00617.75
8.2.60.0040.00417.91
8.2.50.0030.00518.07
8.2.40.0000.00819.36
8.2.30.0040.00418.25
8.2.20.0040.00418.00
8.2.10.0000.00718.31
8.2.00.0030.00517.95
8.1.280.0080.00825.92
8.1.270.0100.00323.96
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.77
8.1.230.0080.00420.94
8.1.220.0000.00917.91
8.1.210.0050.00318.77
8.1.200.0040.00817.47
8.1.190.0070.00317.47
8.1.180.0080.00018.10
8.1.170.0080.00018.71
8.1.160.0000.00722.02
8.1.150.0040.00418.75
8.1.140.0040.00417.64
8.1.130.0000.00717.93
8.1.120.0030.00317.58
8.1.110.0080.00017.64
8.1.100.0070.00017.59
8.1.90.0040.00417.55
8.1.80.0040.00417.46
8.1.70.0030.00317.50
8.1.60.0050.00317.73
8.1.50.0030.00617.69
8.1.40.0000.00817.66
8.1.30.0040.00417.76
8.1.20.0000.00917.72
8.1.10.0040.00417.80
8.1.00.0060.00617.61
8.0.300.0070.00018.77
8.0.290.0040.00417.13
8.0.280.0030.00318.41
8.0.270.0030.00317.25
8.0.260.0070.00017.35
8.0.250.0070.00017.11
8.0.240.0080.00017.22
8.0.230.0000.00817.21
8.0.220.0000.00617.15
8.0.210.0000.00717.00
8.0.200.0040.00417.14
8.0.190.0040.00417.20
8.0.180.0030.00617.08
8.0.170.0060.00317.18
8.0.160.0000.00717.08
8.0.150.0070.00016.95
8.0.140.0030.00717.02
8.0.130.0030.00313.63
8.0.120.0040.00417.01
8.0.110.0000.00717.18
8.0.100.0020.00517.12
8.0.90.0040.00417.00
8.0.80.0130.00317.20
8.0.70.0040.00417.09
8.0.60.0040.00417.00
8.0.50.0040.00417.17
8.0.30.0120.00817.28
8.0.20.0150.01217.40
8.0.10.0040.00417.07
8.0.00.0140.01317.14
7.4.330.0030.00315.00
7.4.320.0030.00316.60
7.4.300.0000.00716.70
7.4.290.0030.00316.79
7.4.280.0060.00316.70
7.4.270.0000.00716.76
7.4.260.0000.00716.57
7.4.250.0050.00316.71
7.4.240.0060.00116.67
7.4.230.0070.00016.53
7.4.220.0100.01316.80
7.4.210.0140.00616.71
7.4.200.0070.00016.49
7.4.160.0030.01416.62
7.4.150.0000.01817.40
7.4.140.0130.00817.86
7.4.130.0100.00716.66
7.4.120.0100.00716.75
7.4.110.0100.00616.83
7.4.100.0070.01116.80
7.4.90.0040.01316.82
7.4.80.0120.00619.39
7.4.70.0110.00616.73
7.4.60.0120.00916.75
7.4.50.0030.00616.89
7.4.40.0060.00916.65
7.4.30.0090.00716.56
7.4.10.0030.01715.14
7.4.00.0050.00815.13
7.3.330.0050.00013.28
7.3.320.0000.00513.29
7.3.310.0000.00716.25
7.3.300.0000.00716.38
7.3.290.0000.01516.48
7.3.280.0130.00616.47
7.3.270.0070.01017.40
7.3.260.0110.00716.93
7.3.250.0100.01016.76
7.3.240.0140.00316.79
7.3.230.0110.00616.79
7.3.210.0130.01016.76
7.3.200.0060.01019.39
7.3.190.0030.01316.50
7.3.180.0060.00916.36
7.3.170.0060.00916.41
7.3.160.0120.01216.41
7.3.130.0040.01514.97
7.3.120.0060.01114.93
7.3.110.0070.01115.35
7.3.100.0060.01015.25
7.3.90.0080.00415.13
7.3.80.0030.01715.13
7.3.70.0070.00714.90
7.3.60.0030.00714.76
7.3.50.0060.00614.86
7.3.40.0060.00615.17
7.3.30.0070.00714.99
7.3.20.0060.00316.69
7.3.10.0130.00316.79
7.3.00.0000.01516.55
7.2.330.0060.01616.69
7.2.320.0090.00916.68
7.2.310.0070.01016.74
7.2.300.0080.00916.99
7.2.290.0060.01316.93
7.2.260.0060.01315.24
7.2.250.0070.01115.31
7.2.240.0040.01115.43
7.2.230.0030.01415.12
7.2.220.0130.00615.20
7.2.210.0070.00715.06
7.2.200.0110.00715.16
7.2.190.0070.00715.33
7.2.180.0120.00315.06
7.2.170.0070.00415.48
7.2.160.0080.00415.25
7.2.150.0000.01316.76
7.2.140.0070.00716.97
7.2.130.0130.00317.06
7.2.120.0040.00717.18
7.2.110.0120.00317.09
7.2.100.0030.01416.99
7.2.90.0040.01417.08
7.2.80.0080.00817.00
7.2.70.0090.00917.00
7.2.60.0040.00816.95
7.2.50.0040.01117.22
7.2.40.0050.00516.82
7.2.30.0030.01017.26
7.2.20.0050.00517.03
7.2.10.0090.00617.26
7.2.00.0080.00818.34
7.1.330.0060.00616.10
7.1.320.0060.00916.02
7.1.310.0030.01016.16
7.1.300.0040.00715.98
7.1.290.0070.00716.02
7.1.280.0030.00915.65
7.1.270.0040.00715.91
7.1.260.0090.00415.71
7.1.250.0110.00316.02
7.1.240.0070.01015.86
7.1.230.0030.00816.07
7.1.220.0030.00716.01
7.1.210.0040.00716.14
7.1.200.0060.01015.82
7.1.190.0120.00315.93
7.1.180.0070.00315.96
7.1.170.0120.00316.07
7.1.160.0040.00416.00
7.1.150.0080.00015.82
7.1.140.0040.00416.00
7.1.130.0040.01115.94
7.1.120.0090.00315.95
7.1.110.0100.00316.20
7.1.100.0090.00517.19
7.1.90.0110.00715.89
7.1.80.0070.00715.89
7.1.70.0060.00616.75
7.1.60.0110.00617.78
7.1.50.0030.01516.37
7.1.40.0000.01015.74
7.1.30.0110.00415.96
7.1.20.0030.01215.84
7.1.10.0060.00915.97
7.1.00.0050.04219.29
7.0.330.0030.01115.24
7.0.320.0070.00715.45
7.0.310.0000.01715.34
7.0.300.0100.00315.47
7.0.290.0000.01115.60
7.0.280.0030.01015.53
7.0.270.0060.00615.53
7.0.260.0000.00815.72
7.0.250.0060.00315.79
7.0.240.0060.00615.50
7.0.230.0040.01115.22
7.0.220.0040.00815.45
7.0.210.0090.00615.61
7.0.200.0020.01216.17
7.0.190.0060.00915.60
7.0.180.0030.01015.68
7.0.170.0030.01015.73
7.0.160.0030.00615.73
7.0.150.0120.00315.63
7.0.140.0030.03918.87
7.0.130.0130.00015.63
7.0.120.0100.00615.50
7.0.110.0090.00615.79
7.0.100.0040.01115.76
7.0.90.0070.01015.63
7.0.80.0100.00315.74
7.0.70.0000.01315.43
7.0.60.0030.02517.76
7.0.50.0030.04616.68
7.0.40.0030.03016.97
7.0.30.0240.02816.95
7.0.20.0100.04216.72
7.0.10.0070.03316.95
7.0.00.0070.04416.85
5.6.400.0070.00714.21
5.6.390.0000.01114.67
5.6.380.0040.01114.47
5.6.370.0040.01114.65
5.6.360.0080.00614.09
5.6.350.0060.00614.17
5.6.340.0080.00414.53
5.6.330.0040.00714.66
5.6.320.0050.00514.65
5.6.310.0070.00714.15
5.6.300.0040.00814.27
5.6.290.0060.00614.79
5.6.280.0040.04117.88
5.6.270.0050.00514.41
5.6.260.0000.01014.43
5.6.250.0030.01014.68
5.6.240.0060.00314.60
5.6.230.0140.00014.57
5.6.220.0000.01414.20
5.6.210.0060.03817.50
5.6.200.0070.04216.31
5.6.190.0070.02917.45
5.6.180.1850.02817.48
5.6.170.0150.02017.49
5.6.160.0050.04517.26
5.6.150.0060.04216.15
5.6.140.0050.04216.35
5.6.130.0050.04516.34
5.6.120.0050.04317.79
5.6.110.0060.02517.54
5.6.100.0100.02317.63
5.6.90.0050.02917.59
5.6.80.0100.04017.27
5.6.70.2130.02717.45
5.6.60.0000.01314.27
5.6.50.0030.00614.55
5.6.40.0060.00914.25
5.6.30.0030.00614.12
5.6.20.0060.01014.09
5.6.10.0070.00714.13
5.6.00.0030.00614.22
5.5.380.0040.00814.33
5.5.370.0060.00914.36
5.5.360.0030.00714.54
5.5.350.0050.04817.29
5.5.340.0050.03616.09
5.5.330.0070.02217.31
5.5.320.0170.04317.26
5.5.310.0100.02717.39
5.5.300.0110.03116.18
5.5.290.0070.04516.22
5.5.280.0090.04717.72
5.5.270.0070.03217.74
5.5.260.0070.04217.38
5.5.250.0060.04617.34
5.5.240.0150.04717.39
5.5.230.0130.00014.46
5.5.220.0090.00614.36
5.5.210.0090.00014.30
5.5.200.0100.00314.36
5.5.190.0030.00714.42
5.5.180.0070.01014.09
5.5.170.0170.00014.41
5.5.160.0060.00914.46
5.5.150.0070.00714.08
5.5.140.0080.00614.54
5.5.130.0070.00714.35
5.5.120.0060.01214.43
5.5.110.0100.00713.98
5.5.100.0060.00914.48
5.5.90.0090.00614.20
5.5.80.0060.00914.15
5.5.70.0060.00314.26
5.5.60.0130.00314.09
5.5.50.0070.00714.32
5.5.40.0050.00514.33
5.5.30.0000.01313.94
5.5.20.0060.00614.03
5.5.10.0060.00314.52
5.5.00.0130.00014.36
5.4.450.0180.02827.55
5.4.440.0220.03027.53
5.4.430.0170.02027.47
5.4.420.0180.02227.52
5.4.410.0150.02527.27
5.4.400.0070.02927.45
5.4.390.0250.02127.37
5.4.380.0190.02814.80
5.4.370.0170.03414.68
5.4.360.0170.03214.85
5.4.350.0150.02814.84
5.4.340.0220.03914.82
5.4.330.0030.01011.27
5.4.320.0060.01911.83
5.4.310.0020.02611.63
5.4.300.0040.02311.78
5.4.290.0040.02411.70
5.4.280.0060.02511.74
5.4.270.0070.01911.80
5.4.260.0080.02011.73
5.4.250.0060.02111.66
5.4.240.0080.02411.64
5.4.230.0070.02211.75
5.4.220.0070.02511.67
5.4.210.0040.02611.84
5.4.200.0030.02211.69
5.4.190.0040.02211.62
5.4.180.0050.02111.69
5.4.170.0060.02111.66
5.4.160.0100.01911.85
5.4.150.0070.02511.68
5.4.140.0060.02511.57
5.4.130.0050.02111.53
5.4.120.0040.01911.66
5.4.110.0040.02311.56
5.4.100.0070.01911.54
5.4.90.0060.02611.44
5.4.80.0030.02511.53
5.4.70.0040.01911.50
5.4.60.0050.01911.57
5.4.50.0060.02111.36
5.4.40.0060.02011.46
5.4.30.0070.02111.52
5.4.20.0060.02011.54
5.4.10.0060.02111.49
5.4.00.0020.02211.27
5.3.290.0020.02511.73
5.3.280.0050.02011.61
5.3.270.0060.02011.63
5.3.260.0050.02311.55
5.3.250.0060.02211.61
5.3.240.0020.03411.57
5.3.230.0060.02211.62
5.3.220.0070.02411.46
5.3.210.0050.02711.58
5.3.200.0050.02111.55
5.3.190.0060.02411.60
5.3.180.0070.01911.65
5.3.170.0030.02211.65
5.3.160.0070.01911.63
5.3.150.0040.02211.63
5.3.140.0060.02211.64
5.3.130.0050.02211.54
5.3.120.0040.02211.46
5.3.110.0080.02011.53
5.3.100.0060.02311.27
5.3.90.0040.02511.29
5.3.80.0040.02311.24
5.3.70.0060.02011.10
5.3.60.0030.02111.18
5.3.50.0070.01711.09
5.3.40.0050.02111.16
5.3.30.0050.01911.10
5.3.20.0060.01911.12
5.3.10.0030.02410.87
5.3.00.0050.02410.92
5.2.170.0030.0329.20
5.2.160.0040.0309.20
5.2.150.0030.0329.19
5.2.140.0060.0299.19
5.2.130.0060.0309.15
5.2.120.0060.0269.15
5.2.110.0070.0289.16
5.2.100.0030.0309.15
5.2.90.0060.0289.15
5.2.80.0060.0319.15
5.2.70.0080.0329.14
5.2.60.0090.0279.10
5.2.50.0060.0359.07
5.2.40.0080.0349.05
5.2.30.0060.0279.03
5.2.20.0050.0289.02
5.2.10.0030.0298.92
5.2.00.0070.0268.78
5.1.60.0020.0318.07
5.1.50.0060.0288.06
5.1.40.0050.0288.04
5.1.30.0070.0238.39
5.1.20.0070.0248.42
5.1.10.0050.0258.14
5.1.00.0050.0258.14
5.0.50.0060.0246.63
5.0.40.0060.0236.49
5.0.30.0030.0316.30
5.0.20.0030.0206.27
5.0.10.0040.0196.25
5.0.00.0040.0306.24
4.4.90.0030.0154.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0040.0144.76
4.4.50.0040.0144.77
4.4.40.0030.0254.71
4.4.30.0010.0174.76
4.4.20.0020.0154.85
4.4.10.0050.0134.85
4.4.00.0050.0234.76
4.3.110.0010.0164.66
4.3.100.0040.0214.66
4.3.90.0050.0144.64
4.3.80.0020.0304.59
4.3.70.0040.0204.63
4.3.60.0030.0134.63
4.3.50.0050.0134.63
4.3.40.0010.0294.53
4.3.30.0020.0213.30
4.3.20.0020.0183.27
4.3.10.0000.0183.22
4.3.00.0100.01343.77

preferences:
66.4 ms | 401 KiB | 5 Q