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.0170.00318.43
8.3.50.0140.00422.03
8.3.40.0110.00718.96
8.3.30.0110.00418.93
8.3.20.0030.00520.14
8.3.10.0080.00023.45
8.3.00.0040.00419.79
8.2.180.0300.00816.75
8.2.170.0140.00722.96
8.2.160.0130.00320.47
8.2.150.0090.00624.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00919.74
8.2.110.0040.00420.52
8.2.100.0120.00018.16
8.2.90.0040.00418.16
8.2.80.0050.00317.97
8.2.70.0060.00318.00
8.2.60.0000.00818.04
8.2.50.0030.00618.07
8.2.40.0080.00019.17
8.2.30.0000.00718.25
8.2.20.0040.00418.00
8.2.10.0040.00418.23
8.2.00.0040.00418.05
8.1.280.0150.00025.92
8.1.270.0120.00624.02
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0040.00422.31
8.1.230.0090.00321.16
8.1.220.0040.00417.91
8.1.210.0000.00818.98
8.1.200.0000.00917.50
8.1.190.0000.00817.36
8.1.180.0030.00618.10
8.1.170.0000.00918.75
8.1.160.0040.00422.01
8.1.150.0040.00418.76
8.1.140.0000.00817.56
8.1.130.0030.00317.76
8.1.120.0080.00017.63
8.1.110.0040.00417.48
8.1.100.0000.00717.55
8.1.90.0000.00717.52
8.1.80.0070.00017.64
8.1.70.0030.00317.43
8.1.60.0030.00617.61
8.1.50.0030.00517.52
8.1.40.0040.00417.54
8.1.30.0000.00817.61
8.1.20.0030.00517.70
8.1.10.0040.00417.64
8.1.00.0090.00017.60
8.0.300.0000.00720.32
8.0.290.0050.00217.00
8.0.280.0040.00418.50
8.0.270.0030.00317.19
8.0.260.0070.00017.23
8.0.250.0030.00317.23
8.0.240.0040.00417.18
8.0.230.0000.00717.24
8.0.220.0030.00517.09
8.0.210.0000.00717.14
8.0.200.0030.00317.18
8.0.190.0060.00317.19
8.0.180.0000.00717.16
8.0.170.0000.00917.19
8.0.160.0070.00017.26
8.0.150.0000.00717.13
8.0.140.0050.00517.11
8.0.130.0050.00013.57
8.0.120.0040.00417.06
8.0.110.0040.00417.17
8.0.100.0050.00216.96
8.0.90.0030.00317.15
8.0.80.0040.01117.09
8.0.70.0000.00716.95
8.0.60.0040.00417.18
8.0.50.0040.00417.08
8.0.30.0100.01017.29
8.0.20.0120.01117.48
8.0.10.0040.00417.24
8.0.00.0120.00517.00
7.4.330.0050.00215.00
7.4.320.0000.00616.80
7.4.300.0070.00016.84
7.4.290.0000.00716.81
7.4.280.0060.00316.58
7.4.270.0070.00016.69
7.4.260.0070.00316.82
7.4.250.0000.00716.69
7.4.240.0010.00616.65
7.4.230.0070.00016.51
7.4.220.0140.01016.90
7.4.210.0140.00616.75
7.4.200.0000.00716.89
7.4.160.0130.00716.58
7.4.150.0110.00717.40
7.4.140.0060.01217.86
7.4.130.0090.01216.73
7.4.120.0070.01116.75
7.4.110.0060.01216.73
7.4.100.0100.00716.75
7.4.90.0140.00316.70
7.4.80.0060.01219.39
7.4.70.0200.00316.81
7.4.60.0100.00616.73
7.4.50.0000.00816.74
7.4.40.0080.00916.72
7.4.30.0100.00716.76
7.4.00.0050.01315.31
7.3.330.0050.00013.21
7.3.320.0000.00613.29
7.3.310.0060.00316.52
7.3.300.0020.00516.38
7.3.290.0130.00616.45
7.3.280.0050.01216.44
7.3.270.0070.01117.40
7.3.260.0060.01216.48
7.3.250.0110.00916.69
7.3.240.0100.00616.45
7.3.230.0130.00316.82
7.3.210.0040.01516.50
7.3.200.0080.00819.39
7.3.190.0040.01216.85
7.3.180.0090.01016.39
7.3.170.0070.00916.44
7.3.160.0060.00916.44
7.3.120.0110.01015.02
7.3.110.0090.00914.95
7.3.100.0070.00914.87
7.3.90.0020.01215.15
7.3.80.0080.00714.96
7.3.70.0060.00914.78
7.3.60.0070.00814.84
7.3.50.0060.00815.03
7.3.40.0020.01114.67
7.3.30.0050.00914.94
7.3.20.0090.00416.83
7.3.10.0110.00516.65
7.3.00.0090.00716.65
7.2.330.0040.01416.83
7.2.320.0090.00916.94
7.2.310.0160.00716.86
7.2.300.0120.00616.90
7.2.290.0140.00716.61
7.2.250.0150.00615.04
7.2.240.0110.00815.20
7.2.230.0080.00814.73
7.2.220.0090.00615.00
7.2.210.0080.00714.98
7.2.200.0090.00514.89
7.2.190.0030.01215.08
7.2.180.0060.00614.98
7.2.170.0080.00515.01
7.2.160.0170.00314.80
7.2.150.0030.01416.98
7.2.140.0030.00916.47
7.2.130.0080.00817.01
7.2.120.0050.01216.94
7.2.110.0120.00616.77
7.2.100.0060.00916.95
7.2.90.0090.00616.86
7.2.80.0100.01017.06
7.2.70.0080.00817.01
7.2.60.0060.01117.09
7.2.50.0100.00617.00
7.2.40.0030.01017.03
7.2.30.0060.00917.14
7.2.20.0080.01016.99
7.2.10.0030.00916.93
7.2.00.0080.00917.74
7.1.330.0040.01215.88
7.1.320.0080.00615.86
7.1.310.0050.01016.04
7.1.300.0050.01015.51
7.1.290.0030.01215.79
7.1.280.0040.01115.87
7.1.270.0060.00615.85
7.1.260.0050.00715.73
7.1.250.0060.00815.98
7.1.100.0030.00918.21
7.1.70.0000.00717.38
7.1.60.0060.01819.70
7.1.50.0040.01117.25
7.1.00.0070.07322.44
7.0.200.0080.00016.60
7.0.140.0070.06722.04
7.0.60.0070.07719.90
7.0.50.0070.06717.68
7.0.40.0130.05720.11
7.0.30.0300.07720.32
7.0.20.0300.04720.18
7.0.10.0230.06320.36
7.0.00.0030.09020.18
5.6.280.0100.06320.81
5.6.210.0100.08320.45
5.6.200.0130.07318.11
5.6.190.0030.08320.78
5.6.180.0070.03720.45
5.6.170.0270.08020.48
5.6.160.0130.03320.40
5.6.150.0000.04718.08
5.6.140.0100.07318.11
5.6.130.0030.04718.21
5.6.120.0170.06720.97
5.6.110.0030.05320.98
5.6.100.0070.03721.10
5.6.90.0070.08020.96
5.6.80.0030.07720.56
5.6.70.4430.04320.38
5.5.350.0100.07320.43
5.5.340.0030.07317.98
5.5.330.0070.08720.29
5.5.320.0330.07320.34
5.5.310.0300.04320.34
5.5.300.0100.07317.95
5.5.290.0070.03717.87
5.5.280.0100.08020.77
5.5.270.0030.08720.79
5.5.260.0130.06720.64
5.5.250.0100.05320.54
5.5.240.0100.06320.18
5.4.450.0600.04043.90
5.4.440.0200.04343.89
5.4.430.0400.05343.80
5.4.420.0270.05043.79
5.4.410.0100.05043.77
5.4.400.0170.04043.77
5.4.390.0200.03043.77
5.4.380.0130.05318.53
5.4.370.0170.05018.58
5.4.360.0170.05318.66
5.4.350.0200.05018.57
5.4.340.0130.05318.71
5.4.320.0050.04212.45
5.4.310.0040.03912.45
5.4.300.0060.04012.46
5.4.290.0030.04112.45
5.4.280.0070.03412.35
5.4.270.0060.04212.35
5.4.260.0050.04312.35
5.4.250.0060.04012.34
5.4.240.0080.03412.35
5.4.230.0060.03812.34
5.4.220.0080.03812.34
5.4.210.0060.04012.34
5.4.200.0050.03812.34
5.4.190.0060.03612.34
5.4.180.0060.04212.34
5.4.170.0090.03212.34
5.4.160.0060.03512.34
5.4.150.0040.04312.34
5.4.140.0040.03812.02
5.4.130.0030.03812.01
5.4.120.0020.03811.96
5.4.110.0080.03211.96
5.4.100.0100.03611.96
5.4.90.0070.04011.96
5.4.80.0060.03811.96
5.4.70.0070.03711.96
5.4.60.0070.03311.96
5.4.50.0110.03011.96
5.4.40.0040.03611.95
5.4.30.0090.03811.95
5.4.20.0090.03611.95
5.4.10.0070.03811.94
5.4.00.0100.03311.44
5.3.290.0120.04612.80
5.3.280.0050.03912.71
5.3.270.0090.03512.72
5.3.260.0070.03712.72
5.3.250.0070.04212.72
5.3.240.0090.03712.71
5.3.230.0050.04012.71
5.3.220.0060.03812.68
5.3.210.0040.04312.68
5.3.200.0080.03412.68
5.3.190.0060.04712.67
5.3.180.0030.03912.67
5.3.170.0110.03912.67
5.3.160.0090.03312.67
5.3.150.0060.03712.67
5.3.140.0090.03312.66
5.3.130.0070.04112.66
5.3.120.0060.03912.66
5.3.110.0040.03912.66
5.3.100.0080.04512.12
5.3.90.0070.03412.09
5.3.80.0080.03312.08
5.3.70.0050.03612.07
5.3.60.0060.04112.06
5.3.50.0060.03912.00
5.3.40.0060.03612.00
5.3.30.0090.03711.95
5.3.20.0080.03311.74
5.3.10.0060.03611.70
5.3.00.0060.03811.69
5.2.170.0060.0309.19
5.2.160.0040.0309.19
5.2.150.0040.0319.20
5.2.140.0030.0329.19
5.2.130.0060.0279.15
5.2.120.0080.0269.15
5.2.110.0040.0299.16
5.2.100.0050.0289.15
5.2.90.0020.0319.15
5.2.80.0020.0339.15
5.2.70.0050.0309.15
5.2.60.0050.0309.10
5.2.50.0040.0319.07
5.2.40.0060.0279.05
5.2.30.0060.0329.03
5.2.20.0040.0299.02
5.2.10.0050.0278.92
5.2.00.0040.0368.79
5.1.60.0040.0248.07
5.1.50.0050.0238.07
5.1.40.0050.0248.05
5.1.30.0020.0278.39
5.1.20.0100.0248.42
5.1.10.0020.0288.14
5.1.00.0040.0268.14
5.0.50.0060.0256.63
5.0.40.0050.0186.49
5.0.30.0050.0356.30
5.0.20.0070.0186.27
5.0.10.0030.0206.25
5.0.00.0060.0286.24
4.4.90.0030.0154.78
4.4.80.0050.0134.75
4.4.70.0010.0174.75
4.4.60.0020.0164.76
4.4.50.0040.0144.77
4.4.40.0060.0224.71
4.4.30.0030.0154.76
4.4.20.0020.0154.84
4.4.10.0030.0204.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0234.66
4.3.90.0030.0204.63
4.3.80.0030.0294.59
4.3.70.0000.0174.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0040.0274.54
4.3.30.0030.0143.30
4.3.20.0000.0173.27
4.3.10.0010.0173.22
4.3.00.0000.02043.77

preferences:
58.63 ms | 401 KiB | 5 Q