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("/#d/", "", $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.0090.01216.63
8.3.50.0100.00722.05
8.3.40.0100.00719.09
8.3.30.0110.00319.22
8.3.20.0070.00020.19
8.3.10.0040.00423.49
8.3.00.0080.00019.69
8.2.180.0060.01018.92
8.2.170.0080.00822.96
8.2.160.0130.00020.35
8.2.150.0100.01024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.82
8.2.110.0030.00622.25
8.2.100.0030.00918.03
8.2.90.0030.00519.05
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0030.00618.04
8.2.50.0050.00518.07
8.2.40.0050.00319.31
8.2.30.0080.00018.43
8.2.20.0000.00717.87
8.2.10.0070.00018.32
8.2.00.0000.00718.05
8.1.280.0070.01425.92
8.1.270.0070.00723.92
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00023.79
8.1.230.0000.01019.10
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0060.00617.48
8.1.190.0080.00017.35
8.1.180.0000.00918.10
8.1.170.0000.00818.61
8.1.160.0050.00222.12
8.1.150.0040.00418.75
8.1.140.0030.00617.58
8.1.130.0040.00417.94
8.1.120.0040.00417.52
8.1.110.0040.00417.47
8.1.100.0040.00417.51
8.1.90.0000.00717.57
8.1.80.0000.00717.59
8.1.70.0030.00317.55
8.1.60.0000.00817.62
8.1.50.0000.00817.55
8.1.40.0040.00417.52
8.1.30.0040.00417.79
8.1.20.0050.00217.70
8.1.10.0050.00317.77
8.1.00.0030.00617.70
8.0.300.0000.00718.77
8.0.290.0000.00717.00
8.0.280.0050.00218.48
8.0.270.0030.00317.38
8.0.260.0000.00617.30
8.0.250.0000.00717.20
8.0.240.0040.00417.18
8.0.230.0070.00017.27
8.0.220.0070.00017.16
8.0.210.0000.00717.11
8.0.200.0000.00617.18
8.0.190.0090.00017.14
8.0.180.0040.00417.04
8.0.170.0030.00517.08
8.0.160.0000.00717.11
8.0.150.0040.00317.13
8.0.140.0040.00717.11
8.0.130.0050.00013.64
8.0.120.0040.00417.16
8.0.110.0000.00717.13
8.0.100.0070.00017.21
8.0.90.0000.00817.10
8.0.80.0060.01017.14
8.0.70.0040.00416.93
8.0.60.0000.00717.19
8.0.50.0030.00617.14
8.0.30.0110.01017.44
8.0.20.0120.01417.40
8.0.10.0050.00317.07
8.0.00.0050.01216.94
7.4.330.0030.00315.00
7.4.320.0000.00616.83
7.4.300.0000.00716.70
7.4.290.0030.00316.80
7.4.280.0040.00716.71
7.4.270.0000.00816.58
7.4.260.0000.00816.66
7.4.250.0040.00416.50
7.4.240.0040.00416.64
7.4.230.0000.00716.80
7.4.220.0130.01316.86
7.4.210.0030.01116.63
7.4.200.0070.00016.89
7.4.160.0060.00916.74
7.4.150.0140.00417.40
7.4.140.0110.00717.86
7.4.130.0110.00616.79
7.4.120.0140.00516.65
7.4.110.0110.00616.77
7.4.100.0030.01416.75
7.4.90.0110.00616.63
7.4.80.0110.00719.39
7.4.70.0140.00316.75
7.4.60.0100.00716.54
7.4.50.0040.00416.71
7.4.40.0100.00716.62
7.4.30.0100.00716.51
7.4.00.0070.00314.88
7.3.330.0000.00513.26
7.3.320.0030.00313.23
7.3.310.0040.00316.47
7.3.300.0000.00716.33
7.3.290.0070.00716.47
7.3.280.0050.01316.43
7.3.270.0030.01417.40
7.3.260.0110.00616.74
7.3.250.0110.01316.57
7.3.240.0030.01316.48
7.3.230.0120.00616.77
7.3.210.0060.01216.43
7.3.200.0090.01319.39
7.3.190.0040.01216.68
7.3.180.0070.01016.66
7.3.170.0070.01016.47
7.3.160.0110.00516.43
7.3.120.0090.00714.75
7.3.110.0170.00015.14
7.3.100.0060.00614.87
7.3.90.0070.00414.93
7.3.80.0060.00314.94
7.3.70.0100.00315.00
7.3.60.0000.01414.90
7.3.50.0100.00314.77
7.3.40.0000.00915.13
7.3.30.0040.00814.82
7.3.20.0090.00016.89
7.3.10.0060.00916.85
7.3.00.0060.00616.75
7.2.330.0070.01116.89
7.2.320.0070.01016.73
7.2.310.0090.00916.63
7.2.300.0070.01016.73
7.2.290.0070.01016.75
7.2.250.0090.00915.19
7.2.240.0100.01015.11
7.2.230.0040.01115.11
7.2.220.0000.01215.09
7.2.210.0060.00915.28
7.2.200.0080.00614.95
7.2.190.0070.01015.06
7.2.180.0080.00515.09
7.2.170.0080.00314.80
7.2.00.0050.00519.76
7.1.330.0000.01415.90
7.1.320.0040.00815.98
7.1.310.0070.00716.07
7.1.300.0030.00615.89
7.1.290.0080.00415.75
7.1.280.0030.00615.94
7.1.270.0030.00716.03
7.1.260.0040.00415.56
7.1.200.0070.00315.81
7.1.100.0090.00318.50
7.1.70.0070.00317.33
7.1.60.0100.01419.70
7.1.50.0070.01717.24
7.1.00.0070.07022.38
7.0.200.0040.01416.95
7.0.140.0000.07322.08
7.0.60.0130.08019.97
7.0.50.0030.06017.84
7.0.40.0130.08320.09
7.0.30.0570.06320.35
7.0.20.0270.06320.14
7.0.10.0000.05320.32
7.0.00.0030.05320.11
5.6.280.0030.07020.89
5.6.210.0030.08320.54
5.6.200.0170.07718.22
5.6.190.0100.08320.67
5.6.180.3870.03720.66
5.6.170.0300.03320.33
5.6.160.0070.05320.44
5.6.150.0100.06718.22
5.6.140.0030.07718.07
5.6.130.0000.04318.12
5.6.120.0070.08320.89
5.6.110.0130.06321.02
5.6.100.0130.07721.00
5.6.90.0070.07321.09
5.6.80.0100.07320.41
5.6.70.0030.05020.39
5.5.350.0100.07020.36
5.5.340.0070.03717.98
5.5.330.0100.05720.57
5.5.320.0170.04720.50
5.5.310.0270.05320.21
5.5.300.0000.08018.02
5.5.290.0170.07018.01
5.5.280.0070.08720.73
5.5.270.0070.05720.79
5.5.260.0130.06720.76
5.5.250.0030.07320.71
5.5.240.0200.04020.12
5.4.450.0400.04043.90
5.4.440.0300.04743.89
5.4.430.0500.04743.80
5.4.420.0300.04343.79
5.4.410.0230.04743.77
5.4.400.0230.03743.77
5.4.390.0330.03743.77
5.4.380.0100.05718.46
5.4.370.0170.04718.67
5.4.360.0100.05318.49
5.4.350.0170.05018.56
5.4.340.0200.04718.61
5.4.320.0090.03212.45
5.4.310.0050.03812.45
5.4.300.0050.03912.46
5.4.290.0060.03712.45
5.4.280.0100.03512.34
5.4.270.0080.03812.35
5.4.260.0060.03812.35
5.4.250.0060.04012.35
5.4.240.0050.03612.34
5.4.230.0090.03412.34
5.4.220.0080.03212.34
5.4.210.0050.03912.34
5.4.200.0080.03812.34
5.4.190.0110.02912.34
5.4.180.0060.03412.33
5.4.170.0070.03412.34
5.4.160.0080.03312.34
5.4.150.0090.03912.34
5.4.140.0100.03712.02
5.4.130.0070.03312.01
5.4.120.0090.03911.97
5.4.110.0050.03511.96
5.4.100.0060.03811.96
5.4.90.0090.03211.96
5.4.80.0060.03611.97
5.4.70.0070.03311.96
5.4.60.0050.04111.96
5.4.50.0070.03311.96
5.4.40.0060.03611.95
5.4.30.0100.03211.95
5.4.20.0030.03711.95
5.4.10.0070.03511.95
5.4.00.0040.03811.44
5.3.290.0070.03812.80
5.3.280.0070.03912.71
5.3.270.0080.03612.73
5.3.260.0050.04012.71
5.3.250.0050.03812.72
5.3.240.0090.03912.72
5.3.230.0080.04012.71
5.3.220.0070.03512.68
5.3.210.0080.04112.68
5.3.200.0050.04412.68
5.3.190.0030.04112.68
5.3.180.0080.03312.67
5.3.170.0060.03612.66
5.3.160.0080.03412.68
5.3.150.0080.03512.68
5.3.140.0070.03612.66
5.3.130.0100.04212.66
5.3.120.0070.04212.66
5.3.110.0050.04312.65
5.3.100.0060.03712.12
5.3.90.0040.03812.08
5.3.80.0080.03512.07
5.3.70.0050.03812.08
5.3.60.0080.03412.06
5.3.50.0050.03812.00
5.3.40.0050.03712.00
5.3.30.0050.03611.96
5.3.20.0070.04111.74
5.3.10.0080.03611.70
5.3.00.0090.03211.69
5.2.170.0070.0299.20
5.2.160.0050.0289.19
5.2.150.0050.0299.20
5.2.140.0080.0339.19
5.2.130.0030.0309.15
5.2.120.0050.0309.15
5.2.110.0050.0299.16
5.2.100.0060.0279.14
5.2.90.0050.0299.15
5.2.80.0070.0289.15
5.2.70.0050.0299.15
5.2.60.0050.0369.10
5.2.50.0090.0279.07
5.2.40.0060.0279.05
5.2.30.0050.0299.02
5.2.20.0040.0309.02
5.2.10.0060.0278.92
5.2.00.0060.0288.79
5.1.60.0060.0348.07
5.1.50.0050.0318.07
5.1.40.0060.0268.04
5.1.30.0080.0258.39
5.1.20.0060.0328.41
5.1.10.0040.0268.14
5.1.00.0050.0298.14
5.0.50.0050.0206.63
5.0.40.0030.0216.49
5.0.30.0060.0296.30
5.0.20.0040.0186.27
5.0.10.0070.0166.25
5.0.00.0040.0296.25
4.4.90.0030.0174.78
4.4.80.0050.0134.75
4.4.70.0060.0124.75
4.4.60.0010.0174.75
4.4.50.0050.0204.77
4.4.40.0040.0294.71
4.4.30.0010.0174.76
4.4.20.0040.0154.85
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0000.0184.66
4.3.100.0010.0164.66
4.3.90.0060.0114.64
4.3.80.0040.0264.59
4.3.70.0040.0154.63
4.3.60.0020.0234.62
4.3.50.0010.0174.63
4.3.40.0030.0244.54
4.3.30.0030.0263.29
4.3.20.0020.0233.27
4.3.10.0040.0153.22
4.3.00.0000.02043.77

preferences:
40.17 ms | 401 KiB | 5 Q