3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search_a = "A"; $s="domain.io. A 8.8.8.8 www CNAME domain.io"; $lines = explode(" ", $s); $domain = "domain.io"; foreach($lines as $a) { if (preg_match("/\b".$search_a."\b/i", $a)) { $a_array = "$a"; $a_record_output = preg_split('/(.'.$domain.'.|\s)/', $a_array, -1, PREG_SPLIT_NO_EMPTY); print_r($a_record_output); } }

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.5.00.0100.01220.20
8.4.150.0020.00014.05
8.4.140.0140.01017.85
8.4.130.0130.00718.14
8.4.120.0060.00424.13
8.4.110.0040.00622.44
8.4.100.0100.01118.51
8.4.90.0150.00518.79
8.4.80.0110.00820.48
8.4.70.0140.00617.87
8.4.60.0050.00420.70
8.4.50.0080.00618.81
8.4.40.0000.00917.75
8.4.30.0140.00719.60
8.4.20.0130.00719.72
8.4.10.0070.00319.54
8.3.280.0100.01018.50
8.3.270.0120.01016.73
8.3.260.0100.00716.66
8.3.250.0050.00318.61
8.3.240.0060.00217.32
8.3.230.0030.00816.85
8.3.220.0150.00418.84
8.3.210.0080.00816.61
8.3.200.0050.00316.64
8.3.190.0130.00516.65
8.3.180.0110.00916.63
8.3.170.0140.00520.88
8.3.160.0090.00916.84
8.3.150.0060.00317.41
8.3.140.0030.00718.71
8.3.130.0070.00318.44
8.3.120.0050.00320.82
8.3.110.0040.00416.65
8.3.100.0090.00624.06
8.3.90.0000.00826.77
8.3.80.0050.00517.97
8.3.70.0120.00616.48
8.3.60.0090.00616.75
8.3.50.0140.00518.43
8.3.40.0070.00718.79
8.3.30.0000.01518.80
8.3.20.0000.00720.29
8.3.10.0040.00421.79
8.3.00.0000.00823.60
8.2.290.0080.01022.30
8.2.280.0080.00118.43
8.2.270.0130.00618.50
8.2.260.0040.01119.10
8.2.250.0150.00018.54
8.2.240.0060.00317.17
8.2.230.0040.00420.94
8.2.220.0000.00937.54
8.2.210.0070.01126.77
8.2.200.0030.00918.66
8.2.190.0040.01118.13
8.2.180.0130.00618.66
8.2.170.0100.01022.96
8.2.160.0090.00620.36
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0030.00520.57
8.2.120.0070.00026.35
8.2.110.0090.00021.03
8.2.100.0000.01117.84
8.2.90.0050.00318.22
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0090.00020.00
8.2.30.0040.00418.08
8.2.20.0080.00018.28
8.2.10.0050.00218.22
8.2.00.0040.00418.23
8.1.330.0110.00822.04
8.1.320.0100.00916.32
8.1.310.0110.00416.89
8.1.300.0100.00018.26
8.1.290.0030.00730.84
8.1.280.0140.00725.92
8.1.270.0080.00022.05
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0120.00017.48
8.1.230.0040.00720.91
8.1.220.0000.00917.79
8.1.210.0040.00418.92
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0040.00718.52
8.1.170.0080.00018.79
8.1.160.0000.00818.84
8.1.150.0000.00720.21
8.1.140.0000.00717.65
8.1.130.0030.00519.05
8.1.120.0000.00717.66
8.1.110.0040.00417.55
8.1.100.0000.00717.62
8.1.90.0040.00417.50
8.1.80.0040.00417.50
8.1.70.0030.00317.63
8.1.60.0030.00617.61
8.1.50.0000.00817.63
8.1.40.0040.00417.69
8.1.30.0040.00417.67
8.1.20.0080.00017.79
8.1.10.0050.00317.74
8.1.00.0030.00617.54
8.0.300.0050.00519.95
8.0.290.0000.00716.88
8.0.280.0040.00418.38
8.0.270.0050.00318.68
8.0.260.0000.00718.59
8.0.250.0000.00717.09
8.0.240.0040.00417.09
8.0.230.0000.00717.12
8.0.220.0030.00317.04
8.0.210.0030.00316.96
8.0.200.0000.00716.98
8.0.190.0060.00316.99
8.0.180.0030.00517.00
8.0.170.0070.00016.98
8.0.160.0030.00516.98
8.0.150.0090.00016.90
8.0.140.0040.00416.92
8.0.130.0000.00713.43
8.0.120.0030.00616.97
8.0.110.0070.00017.16
8.0.100.0040.00416.91
8.0.90.0040.00416.90
8.0.80.0030.01917.11
8.0.70.0070.00016.88
8.0.60.0040.00416.87
8.0.50.0040.00416.87
8.0.30.0110.00817.40
8.0.20.0120.00917.45
8.0.10.0050.00217.23
8.0.00.0090.00917.13
7.4.330.0000.00515.55
7.4.320.0070.00016.63
7.4.300.0060.00016.86
7.4.290.0050.00316.71
7.4.280.0080.00016.79
7.4.270.0040.00416.77
7.4.260.0060.00316.79
7.4.250.0000.00716.59
7.4.240.0050.00216.59
7.4.230.0000.00816.89
7.4.220.0120.01216.69
7.4.210.0090.00816.79
7.4.200.0080.00016.78
7.4.160.0090.00816.50
7.4.150.0080.00917.40
7.4.140.0110.00917.86
7.4.130.0090.00916.67
7.4.120.0110.00816.75
7.4.110.0040.01216.80
7.4.100.0040.01416.79
7.4.90.0060.01216.57
7.4.80.0150.00319.39
7.4.70.0090.01216.71
7.4.60.0140.00616.65
7.4.50.0060.00916.75
7.4.40.0070.01116.90
7.4.30.0070.01016.82
7.4.00.0150.00015.29
7.3.330.0000.00613.36
7.3.320.0000.00513.30
7.3.310.0000.00716.36
7.3.300.0070.00016.28
7.3.290.0000.00716.32
7.3.280.0070.01016.39
7.3.270.0030.01417.40
7.3.260.0110.00716.49
7.3.250.0120.00916.48
7.3.240.0100.00816.58
7.3.230.0120.00616.46
7.3.210.0130.00316.47
7.3.200.0100.01116.39
7.3.190.0110.00616.45
7.3.180.0150.00816.39
7.3.170.0050.01316.63
7.3.160.0150.00816.52
7.3.10.0050.00616.89
7.3.00.0130.00616.54
7.2.330.0120.00616.78
7.2.320.0160.00616.62
7.2.310.0100.00716.86
7.2.300.0100.01016.63
7.2.290.0140.00716.84
7.2.130.0130.00316.71
7.2.120.0090.00316.91
7.2.110.0040.01116.91
7.2.100.0070.01016.96
7.2.90.0040.01117.01
7.2.80.0050.00916.79
7.2.70.0130.00416.98
7.2.60.0090.00617.05
7.2.50.0000.01816.97
7.2.40.0130.00717.14
7.2.30.0110.00816.73
7.2.20.0030.01616.82
7.2.10.0190.00817.13
7.2.00.0240.00716.86
7.1.250.0140.00715.78
7.1.200.0060.00915.69
7.1.100.5530.01016.46
7.1.90.6930.01316.61
7.1.80.4480.01316.52
7.1.70.6460.01715.46
7.1.60.4230.01433.44
7.1.50.7280.01733.19
7.1.40.5040.00333.02
7.1.30.6860.01032.77
7.1.20.6450.02032.84
7.1.10.4170.00914.80
7.1.00.4010.00715.10
7.0.240.6520.01415.83
7.0.230.6890.01316.15
7.0.220.5360.01015.88
7.0.210.6820.00714.91
7.0.200.9040.01015.18
7.0.190.6780.00914.72
7.0.180.6150.02014.82
7.0.170.4910.01614.62
7.0.160.6570.01314.53
7.0.150.5100.01314.66
7.0.140.5610.01614.65
7.0.130.5260.00314.77
7.0.120.5050.00614.89
7.0.110.5480.00614.91
7.0.100.4800.00714.66
7.0.90.4520.00714.79
7.0.80.4040.01014.79
7.0.70.5430.00714.48
7.0.60.5880.01414.73
7.0.50.3540.02014.71
7.0.40.4450.00714.77
7.0.30.4600.00014.94
7.0.20.5190.00714.71
7.0.10.4700.01014.84
7.0.00.4610.00314.88

preferences:
160.52 ms | 403 KiB | 5 Q