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]); preg_replace('/#/', $text, $string); print_r($string[1]);

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.70.0090.00918.55
8.3.60.0150.00018.68
8.3.50.0150.00722.05
8.3.40.0040.01118.91
8.3.30.0070.01019.08
8.3.20.0040.00420.35
8.3.10.0040.00423.70
8.3.00.0040.00419.93
8.2.180.0080.01117.13
8.2.170.0000.01522.96
8.2.160.0070.01420.34
8.2.150.0180.00024.18
8.2.140.0090.00924.66
8.2.130.0100.00726.16
8.2.120.0040.00419.73
8.2.110.0110.00620.29
8.2.100.0060.00617.97
8.2.90.0040.00419.17
8.2.80.0050.00318.00
8.2.70.0080.00018.00
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0000.00819.26
8.2.30.0050.00318.36
8.2.20.0000.00717.88
8.2.10.0070.00018.17
8.2.00.0040.00417.97
8.1.280.0000.02125.92
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.11
8.1.230.0080.00420.86
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.21
8.1.180.0000.00818.10
8.1.170.0060.00318.71
8.1.160.0070.00021.92
8.1.150.0070.00018.65
8.1.140.0000.00817.56
8.1.130.0030.00317.79
8.1.120.0080.00017.63
8.1.110.0040.00417.56
8.1.100.0050.00217.48
8.1.90.0000.00717.62
8.1.80.0000.00917.46
8.1.70.0000.00717.50
8.1.60.0030.00617.59
8.1.50.0060.00317.63
8.1.40.0040.00417.56
8.1.30.0050.00317.60
8.1.20.0040.00417.66
8.1.10.0000.00717.66
8.1.00.0030.00917.71
8.0.300.0000.00818.77
8.0.290.0000.00716.88
8.0.280.0050.00318.45
8.0.270.0070.00017.29
8.0.260.0000.00717.34
8.0.250.0030.00517.21
8.0.240.0030.00517.18
8.0.230.0000.00717.15
8.0.220.0030.00317.00
8.0.210.0000.00717.03
8.0.200.0030.00317.11
8.0.190.0000.00917.09
8.0.180.0040.00417.14
8.0.170.0040.00417.15
8.0.160.0070.00017.15
8.0.150.0040.00417.09
8.0.140.0030.00716.99
8.0.130.0050.00013.61
8.0.120.0030.00617.06
8.0.110.0040.00417.13
8.0.100.0040.00417.11
8.0.90.0000.00717.19
8.0.80.0040.01217.08
8.0.70.0040.00417.13
8.0.60.0040.00417.16
8.0.50.0040.00417.23
8.0.30.0110.00817.35
8.0.20.0120.01017.40
8.0.10.0040.00417.02
8.0.00.0080.01016.92
7.4.330.0030.00315.00
7.4.320.0030.00316.67
7.4.300.0000.00716.58
7.4.290.0000.00816.80
7.4.280.0100.00016.80
7.4.270.0030.00316.69
7.4.260.0030.00316.78
7.4.250.0030.00316.75
7.4.240.0020.00516.69
7.4.230.0070.00016.52
7.4.220.0120.00916.79
7.4.210.0090.00616.79
7.4.200.0070.00016.48
7.4.160.0220.00016.81
7.4.150.0110.00717.40
7.4.140.0100.00817.86
7.4.130.0110.00516.72
7.4.120.0080.01016.73
7.4.110.0110.00616.60
7.4.100.0040.01316.96
7.4.90.0130.00416.74
7.4.80.0090.01219.39
7.4.70.0090.01216.72
7.4.60.0180.00316.65
7.4.50.0000.00816.75
7.4.40.0170.00316.70
7.4.30.0060.01116.80
7.4.00.0060.00814.94
7.3.330.0000.00513.27
7.3.320.0000.00613.29
7.3.310.0030.00316.20
7.3.300.0030.00316.47
7.3.290.0060.00916.49
7.3.280.0100.01016.49
7.3.270.0170.00017.40
7.3.260.0180.00416.86
7.3.250.0100.00916.70
7.3.240.0170.00416.80
7.3.230.0080.00816.46
7.3.210.0070.01016.72
7.3.200.0100.00719.39
7.3.190.0100.00716.79
7.3.180.0120.00316.85
7.3.170.0060.01216.53
7.3.160.0070.01016.67
7.3.120.0070.00314.97
7.2.330.0110.00716.78
7.2.320.0080.00816.70
7.2.310.0140.00616.82
7.2.300.0130.00316.80
7.2.290.0100.00616.59
7.2.00.0000.01519.55
7.1.100.0080.00318.26
7.1.70.0050.00217.31
7.1.60.0100.01619.70
7.1.50.0060.00617.28
7.1.00.0000.08022.59
7.0.200.0040.00416.58
7.0.140.0070.06322.09
7.0.60.0030.08719.96
7.0.50.0100.03317.93
7.0.40.0100.06719.93
7.0.30.0200.03720.21
7.0.20.0200.04320.14
7.0.10.0300.08320.18
7.0.00.0100.04720.14
5.6.280.0000.07721.04
5.6.210.0100.08020.66
5.6.200.0030.06318.23
5.6.190.0070.04320.61
5.6.180.0070.08020.65
5.6.170.0300.04720.45
5.6.160.0100.05020.37
5.6.150.0070.04318.21
5.6.140.0100.07718.14
5.6.130.0030.05718.18
5.6.120.0130.08021.03
5.6.110.0070.08020.97
5.6.100.0070.04021.00
5.6.90.0030.04320.95
5.6.80.0070.06020.41
5.6.70.4370.03320.39
5.5.350.0100.07320.29
5.5.340.0070.07017.95
5.5.330.0070.08320.26
5.5.320.0230.08020.24
5.5.310.0300.07720.26
5.5.300.0130.07317.92
5.5.290.0070.08317.95
5.5.280.0070.07720.87
5.5.270.0100.05320.96
5.5.260.0100.07020.76
5.5.250.0030.08320.57
5.5.240.0170.06720.07
5.4.450.0530.04343.90
5.4.440.0270.05043.89
5.4.430.0430.04043.80
5.4.420.0130.04343.79
5.4.410.0570.04743.77
5.4.400.0200.04343.77
5.4.390.0300.04343.77
5.4.380.0130.05718.50
5.4.370.0170.05318.51
5.4.360.0170.05018.61
5.4.350.0200.05718.71
5.4.340.0370.05018.46
5.4.320.0090.03812.46
5.4.310.0070.03612.45
5.4.300.0100.03612.45
5.4.290.0080.03812.45
5.4.280.0060.03612.35
5.4.270.0070.03412.35
5.4.260.0100.03312.35
5.4.250.0070.04712.35
5.4.240.0030.03912.35
5.4.230.0050.04612.34
5.4.220.0050.03612.34
5.4.210.0080.03912.34
5.4.200.0060.04312.34
5.4.190.0080.03612.34
5.4.180.0080.03612.34
5.4.170.0040.03712.35
5.4.160.0050.03812.34
5.4.150.0030.03712.34
5.4.140.0090.03612.02
5.4.130.0050.03812.01
5.4.120.0090.03411.96
5.4.110.0070.03711.96
5.4.100.0100.03511.96
5.4.90.0010.04111.96
5.4.80.0060.04111.96
5.4.70.0070.03311.96
5.4.60.0090.03811.96
5.4.50.0040.03811.96
5.4.40.0050.03511.95
5.4.30.0040.04211.95
5.4.20.0090.03611.95
5.4.10.0050.04011.95
5.4.00.0070.04411.43
5.3.290.0060.03812.80
5.3.280.0030.04012.71
5.3.270.0040.04012.72
5.3.260.0050.04312.72
5.3.250.0070.03712.71
5.3.240.0060.04612.72
5.3.230.0050.03912.71
5.3.220.0120.03112.68
5.3.210.0050.04012.68
5.3.200.0090.03312.68
5.3.190.0060.03812.68
5.3.180.0070.03612.67
5.3.170.0080.04212.67
5.3.160.0090.03412.67
5.3.150.0080.04112.67
5.3.140.0060.04212.66
5.3.130.0080.03712.66
5.3.120.0030.04212.66
5.3.110.0060.03912.66
5.3.100.0090.03912.12
5.3.90.0090.03812.08
5.3.80.0070.04412.08
5.3.70.0090.03612.07
5.3.60.0050.03712.07
5.3.50.0100.03712.00
5.3.40.0100.04512.00
5.3.30.0080.04111.96
5.3.20.0070.04311.73
5.3.10.0060.04111.70
5.3.00.0060.03611.69
5.2.170.0070.0319.19
5.2.160.0040.0329.19
5.2.150.0050.0309.19
5.2.140.0040.0319.18
5.2.130.0080.0339.15
5.2.120.0040.0339.14
5.2.110.0050.0289.15
5.2.100.0040.0379.15
5.2.90.0070.0309.15
5.2.80.0040.0309.14
5.2.70.0040.0319.14
5.2.60.0050.0369.10
5.2.50.0060.0289.06
5.2.40.0040.0319.05
5.2.30.0030.0399.02
5.2.20.0060.0309.02
5.2.10.0050.0298.92
5.2.00.0010.0398.79
5.1.60.0040.0278.07
5.1.50.0040.0288.06
5.1.40.0080.0208.05
5.1.30.0050.0258.39
5.1.20.0060.0348.42
5.1.10.0050.0258.14
5.1.00.0070.0328.14
5.0.50.0030.0256.63
5.0.40.0010.0286.49
5.0.30.0020.0336.30
5.0.20.0030.0206.27
5.0.10.0030.0206.25
5.0.00.0030.0316.24
4.4.90.0060.0184.78
4.4.80.0040.0194.76
4.4.70.0020.0164.75
4.4.60.0040.0204.76
4.4.50.0020.0204.77
4.4.40.0040.0244.71
4.4.30.0020.0164.76
4.4.20.0040.0144.84
4.4.10.0050.0184.85
4.4.00.0020.0254.76
4.3.110.0020.0224.67
4.3.100.0040.0144.66
4.3.90.0050.0194.63
4.3.80.0060.0244.58
4.3.70.0030.0184.63
4.3.60.0030.0214.63
4.3.50.0040.0214.63
4.3.40.0050.0224.54
4.3.30.0030.0173.29
4.3.20.0010.0173.27
4.3.10.0040.0183.22
4.3.00.0070.01343.77

preferences:
40.55 ms | 401 KiB | 5 Q