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("/are/", "KK", $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.0110.00418.43
8.3.50.0180.00322.11
8.3.40.0080.00818.93
8.3.30.0120.00618.82
8.3.20.0080.00020.38
8.3.10.0040.00423.64
8.3.00.0000.00819.78
8.2.180.0130.00616.75
8.2.170.0000.01522.96
8.2.160.0040.01120.28
8.2.150.0130.00724.18
8.2.140.0040.00424.66
8.2.130.0000.01426.16
8.2.120.0080.00019.61
8.2.110.0040.00422.23
8.2.100.0040.00817.84
8.2.90.0040.00419.35
8.2.80.0040.00417.97
8.2.70.0000.00917.72
8.2.60.0040.00418.03
8.2.50.0060.00318.07
8.2.40.0090.00019.34
8.2.30.0000.00718.38
8.2.20.0070.00017.92
8.2.10.0000.00718.29
8.2.00.0030.00518.05
8.1.280.0150.00325.92
8.1.270.0000.00823.79
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.78
8.1.230.0040.00719.16
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.01017.36
8.1.190.0000.00817.38
8.1.180.0040.00418.10
8.1.170.0060.00318.72
8.1.160.0000.00722.10
8.1.150.0000.00718.73
8.1.140.0070.00017.61
8.1.130.0080.00017.98
8.1.120.0000.00817.57
8.1.110.0030.00617.46
8.1.100.0070.00017.48
8.1.90.0030.00317.61
8.1.80.0040.00417.53
8.1.70.0030.00317.52
8.1.60.0040.00417.71
8.1.50.0080.00017.64
8.1.40.0040.00417.54
8.1.30.0030.00617.78
8.1.20.0080.00017.68
8.1.10.0000.00817.77
8.1.00.0020.00817.72
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.38
8.0.270.0030.00317.30
8.0.260.0030.00317.41
8.0.250.0030.00317.15
8.0.240.0040.00417.28
8.0.230.0030.00317.21
8.0.220.0000.00717.14
8.0.210.0000.00717.15
8.0.200.0070.00017.18
8.0.190.0000.00817.18
8.0.180.0050.00317.06
8.0.170.0040.00417.11
8.0.160.0000.00717.07
8.0.150.0040.00416.95
8.0.140.0070.00317.00
8.0.130.0030.00313.49
8.0.120.0080.00017.11
8.0.110.0080.00017.09
8.0.100.0040.00417.23
8.0.90.0050.00217.13
8.0.80.0150.00617.06
8.0.70.0080.00017.02
8.0.60.0000.00717.08
8.0.50.0050.00217.13
8.0.30.0080.01017.28
8.0.20.0150.00817.40
8.0.10.0070.00017.02
8.0.00.0090.00817.00
7.4.330.0000.00715.00
7.4.320.0030.00316.65
7.4.300.0030.00316.70
7.4.290.0030.00316.70
7.4.280.0100.00016.69
7.4.270.0040.00416.69
7.4.260.0030.00316.78
7.4.250.0000.00716.68
7.4.240.0050.00216.77
7.4.230.0030.00316.77
7.4.220.0060.01616.82
7.4.210.0070.00716.82
7.4.200.0000.00716.72
7.4.160.0100.00716.62
7.4.150.0060.01217.40
7.4.140.0080.01017.86
7.4.130.0060.01116.61
7.4.120.0120.00816.63
7.4.110.0070.01116.64
7.4.100.0100.01016.57
7.4.90.0070.01016.69
7.4.80.0120.00919.39
7.4.70.0030.01916.75
7.4.60.0070.01016.55
7.4.50.0030.00516.83
7.4.40.0170.00316.66
7.4.30.0070.01016.63
7.4.00.0100.00615.37
7.3.330.0000.00513.29
7.3.320.0000.00613.28
7.3.310.0030.00316.23
7.3.300.0040.00416.24
7.3.290.0150.00016.52
7.3.280.0100.00916.40
7.3.270.0060.01217.40
7.3.260.0040.01416.42
7.3.250.0090.00916.59
7.3.240.0190.00516.48
7.3.230.0070.01016.39
7.3.210.0120.00616.63
7.3.200.0070.01519.39
7.3.190.0120.00616.36
7.3.180.0080.00816.82
7.3.170.0060.01016.91
7.3.160.0100.00616.48
7.3.120.0100.00714.97
7.2.330.0170.00016.61
7.2.320.0070.01016.84
7.2.310.0090.00916.84
7.2.300.0070.01016.85
7.2.290.0070.01417.00
7.2.120.0080.00816.75
7.2.110.0110.00316.76
7.2.100.0070.01016.96
7.2.90.0000.01316.85
7.2.80.0100.00717.00
7.2.70.0030.00917.13
7.2.60.0070.00716.93
7.2.50.0030.00716.85
7.2.40.0040.01116.73
7.2.30.0050.00517.23
7.2.20.0080.00316.89
7.2.10.0050.00517.05
7.2.00.0070.00717.07
7.1.240.0040.01216.05
7.1.230.0040.00816.09
7.1.220.0060.01016.00
7.1.210.0040.00415.73
7.1.200.0000.01215.63
7.1.190.0080.00415.90
7.1.180.0060.00615.96
7.1.170.0000.01215.84
7.1.160.0120.00315.93
7.1.150.0080.00415.93
7.1.140.0100.00316.02
7.1.130.0080.00315.72
7.1.120.0070.00716.02
7.1.110.0110.00416.18
7.1.100.0110.00015.99
7.1.90.0070.00715.80
7.1.80.0000.01315.78
7.1.70.0060.00516.60
7.1.60.0090.01017.87
7.1.50.0060.00716.64
7.1.40.0030.01016.13
7.1.30.0000.01515.94
7.1.20.0040.00815.79
7.1.10.0070.00715.95
7.1.00.0050.04219.05
7.0.320.0030.00915.55
7.0.310.0040.01215.51
7.0.300.0100.00315.55
7.0.290.0030.01015.50
7.0.280.0060.00615.47
7.0.270.0030.01015.63
7.0.260.0060.00615.74
7.0.250.0030.01015.34
7.0.240.0030.00915.60
7.0.230.0100.00315.52
7.0.220.0040.00815.60
7.0.210.0030.00615.70
7.0.200.0030.00816.14
7.0.190.0110.00415.48
7.0.180.0100.00315.45
7.0.170.0030.01015.43
7.0.160.0040.01115.72
7.0.150.0040.00815.66
7.0.140.0050.04018.75
7.0.130.0030.01015.66
7.0.120.0060.00615.70
7.0.110.0100.00015.63
7.0.100.0040.01215.24
7.0.90.0070.00715.44
7.0.80.0060.01015.73
7.0.70.0030.01015.36
7.0.60.0040.02317.80
7.0.50.0030.02816.73
7.0.40.0080.04116.72
7.0.30.0120.02616.84
7.0.20.0150.03916.84
7.0.10.0210.02616.77
7.0.00.0110.02517.03
5.6.380.0000.01314.24
5.6.370.0040.00414.72
5.6.360.0030.01214.46
5.6.350.0030.00914.27
5.6.340.0060.00614.45
5.6.330.0000.01213.90
5.6.320.0040.01114.50
5.6.310.0040.00714.49
5.6.300.0080.00414.65
5.6.290.0030.00514.72
5.6.280.0050.04017.57
5.6.270.0100.00714.44
5.6.260.0060.00914.60
5.6.250.0060.00914.61
5.6.240.0000.01414.36
5.6.230.0070.00714.40
5.6.220.0100.00314.40
5.6.210.0020.02817.53
5.6.200.0080.03816.36
5.6.190.0020.03017.49
5.6.180.0080.04317.81
5.6.170.0140.03917.47
5.6.160.0050.02317.47
5.6.150.0070.02516.29
5.6.140.0070.04516.23
5.6.130.0090.04416.34
5.6.120.0040.04417.70
5.6.110.0070.04817.66
5.6.100.0120.03717.71
5.6.90.0070.04017.67
5.6.80.0070.04317.52
5.6.70.2220.01917.28
5.6.60.0080.00814.25
5.6.50.0060.00614.32
5.6.40.0000.01414.23
5.6.30.0100.00414.10
5.6.20.0070.00714.26
5.6.10.0000.01614.37
5.6.00.0130.00314.37
5.5.380.0050.00311.27
5.5.370.0000.01211.27
5.5.360.0000.01211.30
5.5.350.0030.04615.97
5.5.340.0100.03814.68
5.5.330.0140.03715.85
5.5.320.0060.02115.78
5.5.310.0130.01815.74
5.5.300.0030.04714.62
5.5.290.0120.04214.59
5.5.280.0030.02516.01
5.5.270.0070.03015.95
5.5.260.0030.02916.08
5.5.250.0030.02315.87
5.5.240.0070.04215.72
5.5.230.0000.01111.27
5.5.220.0080.00311.27
5.5.210.0040.00411.27
5.5.200.0090.00311.27
5.5.190.0030.00311.27
5.5.180.0040.00811.27
5.5.170.0070.00714.29
5.5.160.0100.00311.27
5.5.150.0000.00711.27
5.5.140.0060.00611.27
5.5.130.0060.00611.27
5.5.120.0060.00311.30
5.5.110.0030.00311.27
5.5.100.0030.00311.27
5.5.90.0030.00711.36
5.5.80.0070.00411.27
5.5.70.0090.00311.27
5.5.60.0090.00311.27
5.5.50.0040.00711.27
5.5.40.0070.00311.27
5.5.30.0030.00911.27
5.5.20.0030.00311.27
5.5.10.0020.00811.27
5.5.00.0030.00611.27
5.4.450.0130.02427.59
5.4.440.0210.02227.58
5.4.430.0180.02027.53
5.4.420.0160.02127.53
5.4.410.0170.02327.52
5.4.400.0120.02327.52
5.4.390.0400.01827.54
5.4.380.0080.02915.01
5.4.370.0110.02514.93
5.4.360.0100.02914.88
5.4.350.0080.03214.94
5.4.340.0100.02614.99
5.4.330.0030.00611.27
5.4.320.0030.02311.89
5.4.310.0060.02411.86
5.4.300.0070.02011.88
5.4.290.0040.02311.86
5.4.280.0080.01911.81
5.4.270.0090.02511.82
5.4.260.0080.02811.81
5.4.250.0080.02211.81
5.4.240.0050.01911.81
5.4.230.0040.02411.82
5.4.220.0070.02511.80
5.4.210.0050.02011.80
5.4.200.0060.01911.80
5.4.190.0050.02611.80
5.4.180.0040.02511.80
5.4.170.0050.02311.81
5.4.160.0040.02411.80
5.4.150.0060.02011.80
5.4.140.0050.02211.65
5.4.130.0030.02111.64
5.4.120.0040.02111.62
5.4.110.0040.02211.62
5.4.100.0060.02211.62
5.4.90.0040.02211.62
5.4.80.0080.02011.62
5.4.70.0090.01811.61
5.4.60.0080.02111.61
5.4.50.0020.02311.61
5.4.40.0050.02111.61
5.4.30.0070.01911.61
5.4.20.0040.02211.61
5.4.10.0070.02011.61
5.4.00.0050.01911.35
5.3.290.0060.02112.03
5.3.280.0100.01911.99
5.3.270.0040.02111.99
5.3.260.0040.02312.00
5.3.250.0020.02212.00
5.3.240.0020.02211.99
5.3.230.0080.02011.99
5.3.220.0040.02111.97
5.3.210.0040.02211.97
5.3.200.0040.02311.98
5.3.190.0070.02011.97
5.3.180.0070.01911.97
5.3.170.0040.02111.97
5.3.160.0020.02111.97
5.3.150.0040.02111.97
5.3.140.0060.02011.96
5.3.130.0050.02311.96
5.3.120.0030.02211.96
5.3.110.0050.02311.96
5.3.100.0050.02211.69
5.3.90.0020.02711.68
5.3.80.0020.02311.67
5.3.70.0020.02311.67
5.3.60.0040.02211.66
5.3.50.0060.02311.63
5.3.40.0060.02411.64
5.3.30.0040.02311.61
5.3.20.0040.02411.51
5.3.10.0040.02011.48
5.3.00.0040.02311.48
5.2.170.0050.01810.23
5.2.160.0040.01710.23
5.2.150.0030.01910.23
5.2.140.0050.01810.23
5.2.130.0040.01910.21
5.2.120.0060.01610.21
5.2.110.0040.01910.21
5.2.100.0060.01410.21
5.2.90.0030.01610.21
5.2.80.0050.01710.21
5.2.70.0020.01910.21
5.2.60.0030.01810.19
5.2.50.0070.01410.17
5.2.40.0040.01710.16
5.2.30.0020.01910.15
5.2.20.0050.01510.14
5.2.10.0060.01710.10
5.2.00.0030.01910.03
5.1.60.0040.0139.67
5.1.50.0040.0149.67
5.1.40.0030.0179.66
5.1.30.0040.0209.83
5.1.20.0020.0179.84
5.1.10.0020.0159.71
5.1.00.0040.0159.71
5.0.50.0020.0148.95
5.0.40.0020.0128.88
5.0.30.0020.0198.79
5.0.20.0030.0108.77
5.0.10.0030.0128.76
5.0.00.0020.0188.76
4.4.90.0020.0108.02
4.4.80.0020.0118.01
4.4.70.0020.0118.01
4.4.60.0010.0128.01
4.4.50.0020.0128.02
4.4.40.0040.0157.99
4.4.30.0030.0118.02
4.4.20.0040.0098.06
4.4.10.0050.0078.06
4.4.00.0020.0188.01
4.3.110.0020.0147.97
4.3.100.0030.0097.97
4.3.90.0030.0087.95
4.3.80.0050.0147.93
4.3.70.0030.0117.95
4.3.60.0010.0107.95
4.3.50.0020.0117.95
4.3.40.0020.0187.90
4.3.30.0010.0117.28
4.3.20.0020.0107.27
4.3.10.0010.0137.24
4.3.00.0030.01227.52

preferences:
42.23 ms | 401 KiB | 5 Q