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.0080.00818.61
8.3.50.0200.00322.17
8.3.40.0150.00019.09
8.3.30.0040.01119.08
8.3.20.0030.00520.21
8.3.10.0090.00023.64
8.3.00.0050.00319.80
8.2.180.0100.01017.00
8.2.170.0140.00022.96
8.2.160.0070.01120.53
8.2.150.0110.00424.18
8.2.140.0100.01024.66
8.2.130.0140.00026.16
8.2.120.0040.00419.61
8.2.110.0100.00022.25
8.2.100.0000.01117.96
8.2.90.0030.00519.41
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0030.00517.91
8.2.50.0000.00918.07
8.2.40.0080.00019.37
8.2.30.0000.00718.36
8.2.20.0040.00417.95
8.2.10.0070.00018.28
8.2.00.0040.00417.99
8.1.280.0030.01225.92
8.1.270.0070.01023.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.79
8.1.230.0070.00318.91
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0030.00617.48
8.1.180.0030.00518.10
8.1.170.0000.01118.66
8.1.160.0040.00422.00
8.1.150.0000.00718.75
8.1.140.0000.00717.55
8.1.130.0070.00017.88
8.1.120.0040.00417.57
8.1.110.0040.00417.46
8.1.100.0000.00717.60
8.1.90.0040.00417.54
8.1.80.0070.00017.47
8.1.70.0030.00317.41
8.1.60.0030.00517.61
8.1.50.0030.00617.63
8.1.40.0030.00617.65
8.1.30.0040.00417.70
8.1.20.0040.00417.73
8.1.10.0000.00717.64
8.1.00.0100.00017.57
8.0.300.0060.00318.77
8.0.290.0000.00717.00
8.0.280.0000.00718.55
8.0.270.0050.00217.22
8.0.260.0050.00317.31
8.0.250.0070.00017.18
8.0.240.0000.00717.18
8.0.230.0050.00317.11
8.0.220.0030.00317.18
8.0.210.0030.00317.04
8.0.200.0030.00317.21
8.0.190.0040.00417.21
8.0.180.0000.00817.14
8.0.170.0060.00317.10
8.0.160.0030.00517.09
8.0.150.0040.00417.07
8.0.140.0070.00317.00
8.0.130.0000.00613.63
8.0.120.0040.00417.11
8.0.110.0040.00417.02
8.0.100.0000.00717.00
8.0.90.0000.00816.97
8.0.80.0070.01017.16
8.0.70.0000.00717.02
8.0.60.0040.00416.95
8.0.50.0040.00416.92
8.0.30.0120.00717.37
8.0.20.0140.00617.51
8.0.10.0080.00017.06
8.0.00.0140.00316.96
7.4.330.0030.00515.00
7.4.320.0030.00316.64
7.4.300.0070.00016.76
7.4.290.0030.00516.77
7.4.280.0050.00516.77
7.4.270.0070.00016.54
7.4.260.0040.00416.57
7.4.250.0040.00416.76
7.4.240.0030.00316.69
7.4.230.0000.00716.79
7.4.220.0140.01416.81
7.4.210.0110.00316.65
7.4.200.0040.00416.61
7.4.160.0130.00316.74
7.4.150.0150.00317.40
7.4.140.0110.00717.86
7.4.130.0100.00716.82
7.4.120.0130.01016.72
7.4.110.0070.01016.59
7.4.100.0000.01716.85
7.4.90.0140.01016.50
7.4.80.0130.01019.39
7.4.70.0070.01616.69
7.4.60.0060.01716.59
7.4.50.0000.00816.60
7.4.40.0130.00916.58
7.4.30.0080.00816.75
7.4.10.0040.01215.67
7.4.00.0090.00815.47
7.3.330.0000.00613.13
7.3.320.0060.00013.12
7.3.310.0050.00216.45
7.3.300.0070.00016.40
7.3.290.0060.00916.51
7.3.280.0070.01116.43
7.3.270.0140.00417.40
7.3.260.0090.00916.46
7.3.250.0100.00916.77
7.3.240.0040.01516.34
7.3.230.0090.01216.46
7.3.210.0100.01416.68
7.3.200.0000.02119.39
7.3.190.0170.00716.55
7.3.180.0060.01016.69
7.3.170.0170.00316.52
7.3.160.0100.00616.68
7.3.130.0070.01115.83
7.3.120.0060.01015.23
7.3.110.0080.00915.40
7.3.100.0060.00915.25
7.3.90.0090.00715.42
7.3.80.0080.00615.39
7.3.70.0040.00915.35
7.3.60.0060.01015.31
7.3.50.0070.00315.39
7.3.40.0060.00815.36
7.3.30.0020.01215.36
7.3.20.0070.00717.22
7.3.10.0050.00817.21
7.3.00.0050.00717.19
7.2.330.0120.00616.90
7.2.320.0090.01216.73
7.2.310.0150.00916.90
7.2.300.0030.01316.84
7.2.290.0100.01016.69
7.2.260.0130.00815.80
7.2.250.0070.01315.82
7.2.240.0060.01115.57
7.2.230.0060.00915.56
7.2.220.0080.00415.60
7.2.210.0050.00915.57
7.2.200.0070.00715.62
7.2.190.0050.01115.46
7.2.180.0040.01115.52
7.2.170.0040.00915.61
7.2.160.0050.01015.62
7.2.150.0060.00617.45
7.2.140.0080.00717.47
7.2.130.0080.00717.32
7.2.120.0040.00817.40
7.2.110.0060.00817.49
7.2.100.0050.00717.52
7.2.90.0070.00717.52
7.2.80.0070.00817.28
7.2.70.0050.01017.44
7.2.60.0050.00917.49
7.2.50.0070.00717.49
7.2.40.0040.01117.60
7.2.30.0060.00817.64
7.2.20.0050.01017.51
7.2.10.0060.00617.37
7.2.00.0020.01418.07
7.1.330.0080.00716.43
7.1.320.0060.00816.33
7.1.310.0060.00816.30
7.1.300.0060.00816.25
7.1.290.0050.00716.40
7.1.280.0050.00716.34
7.1.270.0080.00616.36
7.1.260.0040.01016.36
7.1.250.0020.01316.40
7.1.240.0090.00616.75
7.1.230.0030.00916.76
7.1.220.0060.00816.63
7.1.210.0090.00716.55
7.1.200.0110.00616.57
7.1.190.0090.00516.52
7.1.180.0080.01016.80
7.1.170.0090.00516.84
7.1.160.0030.01016.68
7.1.150.0040.00816.65
7.1.140.0090.00516.65
7.1.130.0050.00616.72
7.1.120.0030.01116.62
7.1.110.0050.00716.72
7.1.100.0060.00617.18
7.1.90.0030.00716.68
7.1.80.0050.00816.76
7.1.70.0070.00616.81
7.1.60.0080.01017.67
7.1.50.0070.00816.71
7.1.40.0060.00916.55
7.1.30.0090.00316.72
7.1.20.0070.00716.75
7.1.10.0040.01116.79
7.1.00.0050.03018.58
7.0.330.0030.01216.36
7.0.320.0050.00716.36
7.0.310.0080.00516.36
7.0.300.0030.01016.32
7.0.290.0090.00416.32
7.0.280.0070.00516.28
7.0.270.0060.00816.41
7.0.260.0060.00316.56
7.0.250.0080.00616.34
7.0.240.0060.00916.28
7.0.230.0080.00616.45
7.0.220.0050.00816.20
7.0.210.0030.00916.38
7.0.200.0030.00916.52
7.0.190.0050.01016.39
7.0.180.0020.01216.27
7.0.170.0030.00916.30
7.0.160.0110.00516.51
7.0.150.0000.01516.21
7.0.140.0040.03018.31
7.0.130.0040.00716.35
7.0.120.0050.00716.46
7.0.110.0060.00816.35
7.0.100.0030.00916.21
7.0.90.0080.00616.54
7.0.80.0060.00716.52
7.0.70.0090.00516.39
7.0.60.0040.03017.56
7.0.50.0050.02816.86
7.0.40.0070.02516.27
7.0.30.0140.02116.36
7.0.20.0110.03116.36
7.0.10.0100.02716.36
7.0.00.0060.02116.32
5.6.400.0060.00715.28
5.6.390.0100.00715.07
5.6.380.0030.01215.05
5.6.370.0090.00515.03
5.6.360.0090.00515.28
5.6.350.0080.00515.37
5.6.340.0030.00715.34
5.6.330.0090.00615.07
5.6.320.0070.00715.32
5.6.310.0080.00415.11
5.6.300.0050.00815.01
5.6.290.0050.00815.20
5.6.280.0060.02717.17
5.6.270.0060.00815.13
5.6.260.0050.01015.12
5.6.250.0000.01415.27
5.6.240.0070.00615.11
5.6.230.0110.00415.09
5.6.220.0070.00915.30
5.6.210.0120.02716.89
5.6.200.0060.03316.06
5.6.190.0070.02016.90
5.6.180.0030.02316.85
5.6.170.0150.02716.84
5.6.160.0050.03516.90
5.6.150.0040.03416.20
5.6.140.0080.02016.17
5.6.130.0030.03516.31
5.6.120.0040.02717.13
5.6.110.0090.03217.02
5.6.100.0070.01817.02
5.6.90.0120.02217.17
5.6.80.0080.02116.81
5.6.70.1430.02016.81
5.6.60.0090.00615.03
5.6.50.0030.01415.14
5.6.40.0050.00615.18
5.6.30.0070.01015.06
5.6.20.0070.00814.99
5.6.10.0090.00915.32
5.6.00.0100.00515.15
5.5.380.0100.00514.98
5.5.370.0060.00815.21
5.5.360.0050.01015.01
5.5.350.0070.03716.84
5.5.340.0070.03316.02
5.5.330.0060.02816.94
5.5.320.0130.02316.81
5.5.310.0140.01816.87
5.5.300.0100.03116.01
5.5.290.0090.03115.90
5.5.280.0060.02016.88
5.5.270.0060.03117.05
5.5.260.0140.02817.02
5.5.250.0120.02916.95
5.5.240.0050.02716.72
5.5.230.0090.00814.81
5.5.220.0130.00514.94
5.5.210.0080.00715.04
5.5.200.0060.01015.00
5.5.190.0110.00614.79
5.5.180.0100.00815.03
5.5.170.0060.01015.10
5.5.160.0060.00815.03
5.5.150.0070.01115.01
5.5.140.0080.00814.97
5.5.130.0000.01515.08
5.5.120.0070.00715.01
5.5.110.0070.00714.90
5.5.100.0080.00615.00
5.5.90.0080.00814.89
5.5.80.0070.00814.84
5.5.70.0080.00614.99
5.5.60.0090.00814.99
5.5.50.0080.00514.75
5.5.40.0060.01215.00
5.5.30.0050.01214.89
5.5.20.0100.00615.10
5.5.10.0050.00914.96
5.5.00.0060.00915.01
5.4.450.0210.02222.92
5.4.440.0140.02422.92
5.4.430.0090.02122.90
5.4.420.0120.01922.88
5.4.410.0100.02022.88
5.4.400.0100.01722.88
5.4.390.0090.01822.88
5.4.380.0110.02214.48
5.4.370.0120.02014.51
5.4.360.0040.02514.46
5.4.350.0100.02214.53
5.4.340.0060.02514.49
5.4.330.0050.00812.43
5.4.320.0040.02112.44
5.4.310.0070.01712.44
5.4.300.0060.01512.44
5.4.290.0040.01912.43
5.4.280.0040.01712.40
5.4.270.0090.01412.40
5.4.260.0060.01812.40
5.4.250.0060.01712.40
5.4.240.0040.01612.40
5.4.230.0060.02012.40
5.4.220.0050.01712.40
5.4.210.0050.01812.40
5.4.200.0050.01912.40
5.4.190.0060.01612.40
5.4.180.0050.01712.40
5.4.170.0050.01712.40
5.4.160.0040.01712.40
5.4.150.0060.01512.40
5.4.140.0040.01812.29
5.4.130.0070.01512.29
5.4.120.0060.01712.27
5.4.110.0090.01312.27
5.4.100.0070.01612.27
5.4.90.0100.01512.27
5.4.80.0060.01712.27
5.4.70.0070.01512.27
5.4.60.0060.01712.27
5.4.50.0050.01612.27
5.4.40.0030.01612.27
5.4.30.0060.01712.27
5.4.20.0060.01712.27
5.4.10.0070.01612.27
5.4.00.0070.01512.10
5.3.290.0050.02212.65
5.3.280.0080.01612.63
5.3.270.0060.01812.66
5.3.260.0050.01912.66
5.3.250.0060.01812.66
5.3.240.0100.01712.60
5.3.230.0080.01912.63
5.3.220.0060.02012.64
5.3.210.0060.01912.62
5.3.200.0070.01812.64
5.3.190.0050.02012.62
5.3.180.0090.01512.62
5.3.170.0080.01612.59
5.3.160.0040.01812.69
5.3.150.0080.01312.66
5.3.140.0080.01612.65
5.3.130.0050.02012.59
5.3.120.0090.01712.63
5.3.110.0090.01712.57
5.3.100.0080.01912.36
5.3.90.0060.01712.51
5.3.80.0060.01912.44
5.3.70.0070.01812.31
5.3.60.0070.01612.42
5.3.50.0080.01612.35
5.3.40.0060.01812.35
5.3.30.0050.01812.31
5.3.20.0060.01812.27
5.3.10.0060.01712.29
5.3.00.0080.01612.20
5.2.170.0050.0349.19
5.2.160.0060.0329.19
5.2.150.0070.0319.20
5.2.140.0080.0349.19
5.2.130.0050.0289.15
5.2.120.0030.0309.15
5.2.110.0040.0329.16
5.2.100.0090.0319.15
5.2.90.0070.0309.15
5.2.80.0070.0359.15
5.2.70.0080.0269.14
5.2.60.0070.0309.10
5.2.50.0050.0299.07
5.2.40.0050.0279.05
5.2.30.0060.0369.03
5.2.20.0040.0299.02
5.2.10.0040.0288.92
5.2.00.0030.0318.79
5.1.60.0050.0238.07
5.1.50.0060.0288.07
5.1.40.0070.0268.04
5.1.30.0040.0268.39
5.1.20.0050.0268.42
5.1.10.0030.0268.14
5.1.00.0070.0268.14
5.0.50.0060.0186.63
5.0.40.0030.0206.49
5.0.30.0020.0336.30
5.0.20.0040.0256.27
5.0.10.0030.0196.25
5.0.00.0050.0306.25
4.4.90.0030.0164.78
4.4.80.0040.0214.75
4.4.70.0030.0154.75
4.4.60.0010.0174.75
4.4.50.0010.0204.77
4.4.40.0020.0264.71
4.4.30.0010.0174.76
4.4.20.0040.0144.85
4.4.10.0040.0144.85
4.4.00.0030.0254.75
4.3.110.0070.0124.67
4.3.100.0040.0134.67
4.3.90.0010.0164.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0020.0164.63
4.3.40.0020.0324.54
4.3.30.0020.0153.29
4.3.20.0030.0143.27
4.3.10.0030.0203.22
4.3.00.0170.01743.77

preferences:
47.36 ms | 401 KiB | 5 Q