3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "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."; //$subject = str_replace( '#', '', $subject ); mysql_real_escape_string($subject); function safe($value){ return mysql_real_escape_string($value); } $subject = safe($subject); print_r($subject); $var['machine']="1Action == machine"; preg_match("/(?<!\d)\d{8}(?!\d)/", strip_tags($subject), $matches); $var['serial']=$matches[0]; print_r($var['machine']); print_r($var['serial']);

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.0160.00316.50
8.3.50.0070.01121.91
8.3.40.0110.00418.84
8.3.30.0070.00719.13
8.3.20.0040.00420.21
8.3.10.0050.00323.64
8.3.00.0000.00819.78
8.2.180.0110.00716.88
8.2.170.0070.00722.96
8.2.160.0080.00520.38
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.23
8.2.110.0030.00622.13
8.2.100.0040.01119.14
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00717.80
8.2.50.0050.00318.07
8.2.40.0000.00717.97
8.2.30.0050.00218.25
8.2.20.0040.00417.64
8.2.10.0040.00418.13
8.2.00.0000.00817.79
8.1.280.0080.00625.92
8.1.270.0050.00323.88
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00623.86
8.1.230.0040.00719.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0050.00318.52
8.1.160.0040.00421.97
8.1.150.0040.00418.53
8.1.140.0040.00417.41
8.1.130.0000.00717.79
8.1.120.0000.00817.44
8.1.110.0060.00317.39
8.1.100.0030.00317.44
8.1.90.0030.00317.38
8.1.80.0080.00017.39
8.1.70.0000.00617.36
8.1.60.0060.00317.53
8.1.50.0000.00817.56
8.1.40.0040.00417.53
8.1.30.0030.00517.66
8.1.20.0040.00417.50
8.1.10.0030.00617.50
8.1.00.0050.00317.60
8.0.300.0050.00318.77
8.0.290.0070.00016.63
8.0.280.0030.00318.32
8.0.270.0050.00317.26
8.0.260.0000.00617.21
8.0.250.0000.00716.97
8.0.240.0060.00316.97
8.0.230.0030.00316.96
8.0.220.0030.00316.96
8.0.210.0030.00316.89
8.0.200.0050.00317.02
8.0.190.0030.00616.93
8.0.180.0040.00416.90
8.0.170.0000.00716.79
8.0.160.0000.00716.88
8.0.150.0040.00416.92
8.0.140.0030.00416.87
8.0.130.0030.00313.31
8.0.120.0060.00316.91
8.0.110.0040.00416.89
8.0.100.0040.00416.79
8.0.90.0000.00716.78
8.0.80.0100.00616.85
8.0.70.0000.00716.83
8.0.60.0070.00016.79
8.0.50.0040.00416.93
8.0.30.0050.01317.04
8.0.20.0080.01117.40
8.0.10.0040.00416.93
8.0.00.0050.01216.92
7.4.330.0030.00315.00
7.4.320.0030.00316.34
7.4.300.0040.00416.59
7.4.290.0000.00716.60
7.4.280.0030.00616.54
7.4.270.0050.00316.62
7.4.260.0060.00316.43
7.4.250.0070.00016.50
7.4.240.0050.00316.57
7.4.230.0040.00416.72
7.4.220.0190.00916.42
7.4.210.0090.00916.74
7.4.200.0070.00016.64
7.4.160.0100.00716.46
7.4.150.0120.00617.40
7.4.140.0080.01617.86
7.4.130.0100.00716.36
7.4.120.0130.00616.45
7.4.110.0060.01116.64
7.4.100.0060.01616.55
7.4.90.0120.00616.39
7.4.80.0100.01119.39
7.4.70.0070.01016.48
7.4.60.0060.01116.50
7.4.50.0030.00316.62
7.4.40.0090.01916.66
7.4.30.0080.00816.57
7.4.00.0070.01114.88
7.3.330.0050.00013.13
7.3.320.0000.00513.32
7.3.310.0030.00316.27
7.3.300.0030.00316.19
7.3.290.0030.01116.34
7.3.280.0070.01216.31
7.3.270.0100.01017.40
7.3.260.0060.01016.48
7.3.250.0110.00516.31
7.3.240.0080.00816.29
7.3.230.0090.00616.39
7.3.210.0090.01416.45
7.3.200.0080.00819.39
7.3.190.0080.00916.45
7.3.180.0030.01216.29
7.3.170.0000.01416.27
7.3.160.0090.00916.54
7.3.120.0060.01014.88
7.3.10.0070.01016.62
7.3.00.0070.00716.65
7.2.330.0150.00916.47
7.2.320.0070.01716.32
7.2.310.0110.01116.57
7.2.300.0060.01016.64
7.2.290.0130.00316.61
7.2.130.0080.00416.65
7.2.120.0040.01116.79
7.2.110.0060.00616.89
7.2.100.0000.01316.85
7.2.90.0120.00616.66
7.2.80.0100.00316.68
7.2.70.0030.00916.82
7.2.60.0050.00916.82
7.2.50.0060.00316.71
7.2.40.0040.01116.86
7.2.30.0030.00916.80
7.2.20.0000.01016.59
7.2.10.0110.00316.87
7.2.00.0070.01017.97
7.1.250.0090.00315.58
7.1.200.0040.00815.56
7.1.100.0090.00617.95
7.1.70.0080.00017.07
7.1.60.0100.00719.70
7.1.50.0260.01134.39
7.1.00.0000.08022.57
7.0.200.0070.00516.61
7.0.140.0000.07721.95
7.0.60.0030.08020.04
7.0.50.0030.04717.86
7.0.40.0030.04320.30
7.0.30.0070.05320.08
7.0.20.0300.08020.15
7.0.10.0100.08720.22
7.0.00.0030.04320.09
5.6.280.0100.06720.91
5.6.210.0100.08320.48
5.6.200.0030.05718.19
5.6.190.0170.07720.52
5.6.180.0330.06720.61
5.6.170.0170.04020.51
5.6.160.0130.07720.54
5.6.150.0030.07018.15
5.6.140.0100.07718.27
5.6.130.0130.03018.19
5.6.120.0100.04320.99
5.6.110.0070.07321.14
5.6.100.0170.07721.00
5.6.90.0200.07020.90
5.6.80.0030.07720.43
5.5.350.0200.03720.43
5.5.340.0100.07717.95
5.5.330.0100.04720.28
5.5.320.0330.08020.32
5.5.310.0300.08020.41
5.5.300.0070.08318.04
5.5.290.0100.05718.04
5.5.280.0070.03720.78
5.5.270.0030.07320.87
5.5.260.0100.08020.80
5.5.250.0100.05320.62
5.5.240.0100.06020.19
5.4.450.1200.04343.92
5.4.440.0370.05343.91
5.4.430.0600.04343.90
5.4.420.0430.03343.93
5.4.410.0330.04343.92
5.4.400.0270.04743.84
5.4.390.0370.04343.79
5.4.380.0700.05718.56
5.4.370.0270.04018.67
5.4.360.0130.05318.60
5.4.350.0100.06318.64
5.4.340.0170.04718.66
5.4.320.0060.04112.51
5.4.310.0030.04012.50
5.4.300.0060.03812.50
5.4.290.0060.04312.50
5.4.280.0030.04012.39
5.4.270.0090.04112.40
5.4.260.0090.04112.40
5.4.250.0110.04112.39
5.4.240.0090.03812.40
5.4.230.0100.04512.39
5.4.220.0090.05112.39
5.4.210.0070.04412.39
5.4.200.0070.04412.39
5.4.190.0080.03512.39
5.4.180.0060.03712.39
5.4.170.0060.03812.39
5.4.160.0090.03412.39
5.4.150.0050.03812.39
5.4.140.0050.04112.07
5.4.130.0080.03912.06
5.4.120.0080.03312.02
5.4.110.0080.03212.01
5.4.100.0060.03512.02
5.4.90.0070.04412.01
5.4.80.0060.04312.01
5.4.70.0100.03312.00
5.4.60.0090.03412.01
5.4.50.0070.03412.01
5.4.40.0050.04212.00
5.4.30.0090.03911.99
5.4.20.0040.04012.00
5.4.10.0080.03711.99
5.4.00.0090.03711.49
5.3.290.0100.03512.80
5.3.280.0060.03812.70
5.3.270.0070.03912.72
5.3.260.0100.05012.72
5.3.250.0070.04812.72
5.3.240.0120.04112.72
5.3.230.0060.04012.71
5.3.220.0060.03912.68
5.3.210.0030.04712.68
5.3.200.0050.04612.68
5.3.190.0060.03712.68
5.3.180.0090.03312.67
5.3.170.0060.03612.66
5.3.160.0080.04212.68
5.3.150.0060.03812.67
5.3.140.0080.03712.66
5.3.130.0040.04012.66
5.3.120.0070.03812.66
5.3.110.0080.04612.66
5.3.100.0060.03712.12
5.3.90.0070.03712.10
5.3.80.0080.04112.10
5.3.70.0090.03412.09
5.3.60.0120.04112.08
5.3.50.0090.03412.02
5.3.40.0070.03612.02
5.3.30.0070.03411.98
5.3.20.0060.03611.77
5.3.10.0060.03611.73
5.3.00.0100.03411.72
5.2.170.0070.0299.22
5.2.160.0030.0329.22
5.2.150.0080.0359.22
5.2.140.0070.0429.21
5.2.130.0070.0369.18
5.2.120.0040.0329.18
5.2.110.0060.0309.19
5.2.100.0040.0309.18
5.2.90.0040.0319.18
5.2.80.0050.0329.18
5.2.70.0040.0339.18
5.2.60.0050.0309.13
5.2.50.0060.0299.09
5.2.40.0040.0299.07
5.2.30.0080.0279.05
5.2.20.0060.0279.04
5.2.10.0050.0268.95
5.2.00.0040.0298.81
5.1.60.0050.0248.10
5.1.50.0050.0248.09
5.1.40.0070.0268.07
5.1.30.0050.0318.41
5.1.20.0050.0298.44
5.1.10.0040.0268.17
5.1.00.0080.0238.16
5.0.50.0040.0216.64
5.0.40.0040.0206.51
5.0.30.0050.0406.31
5.0.20.0060.0246.28
5.0.10.0020.0286.27
5.0.00.0050.0356.25
4.4.90.0050.0334.78
4.4.80.0030.0224.76
4.4.70.0060.0204.75
4.4.60.0030.0224.75
4.4.50.0050.0214.77
4.4.40.0060.0314.70
4.4.30.0020.0244.76
4.4.20.0060.0214.84
4.4.10.0050.0184.85
4.4.00.0030.0294.76
4.3.110.0000.0214.67
4.3.100.0060.0144.67
4.3.90.0030.0174.63
4.3.80.0030.0264.59
4.3.70.0020.0184.63
4.3.60.0060.0314.63
4.3.50.0060.0304.63
4.3.40.0040.0244.54
4.3.30.0010.0183.32
4.3.20.0020.0173.29
4.3.10.0050.0143.25
4.3.00.0030.02043.79

preferences:
44.58 ms | 401 KiB | 5 Q