3v4l.org

run code in 300+ PHP versions simultaneously
<?php $header = "asd.ads./ads.test+dsa"; $header = ""; $header = 123; #$name = 'hello [*kitty*],how good is today'; preg_match( '/application\/vnd\.ez\.api\.(.*?)\+(?:json|xml)/i', $header, $match ); var_dump( $match );

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.01218.30
8.3.50.0090.01022.95
8.3.40.0080.00818.76
8.3.30.0090.00618.93
8.3.20.0050.00220.16
8.3.10.0000.00823.54
8.3.00.0040.00419.25
8.2.180.0060.01216.63
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0000.00825.66
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0050.00321.05
8.2.110.0030.00619.41
8.2.100.0090.00318.04
8.2.90.0000.00819.09
8.2.80.0050.00317.97
8.2.70.0000.00817.60
8.2.60.0040.00417.68
8.2.50.0060.00318.07
8.2.40.0080.00019.82
8.2.30.0000.00819.82
8.2.20.0040.00417.76
8.2.10.0000.00817.92
8.2.00.0040.00417.67
8.1.280.0070.01425.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0140.00322.03
8.1.230.0040.00718.92
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.48
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0090.00018.59
8.1.160.0020.00521.96
8.1.150.0060.00318.82
8.1.140.0000.00817.44
8.1.130.0030.00317.83
8.1.120.0030.00517.59
8.1.110.0040.00417.46
8.1.100.0040.00417.55
8.1.90.0000.00817.55
8.1.80.0000.00817.54
8.1.70.0000.00817.40
8.1.60.0030.00617.63
8.1.50.0000.00917.63
8.1.40.0030.00617.63
8.1.30.0040.00417.77
8.1.20.0040.00417.70
8.1.10.0000.00717.54
8.1.00.0100.00017.58
8.0.300.0000.00818.77
8.0.290.0080.00016.63
8.0.280.0070.00018.25
8.0.270.0000.00717.20
8.0.260.0030.00317.27
8.0.250.0000.00717.04
8.0.240.0040.00416.98
8.0.230.0030.00316.87
8.0.220.0030.00316.92
8.0.210.0030.00316.84
8.0.200.0070.00016.86
8.0.190.0000.00716.98
8.0.180.0060.00316.97
8.0.170.0000.00816.87
8.0.160.0000.00816.98
8.0.150.0000.00816.88
8.0.140.0070.00016.97
8.0.130.0040.00413.32
8.0.120.0080.00016.98
8.0.110.0000.00717.06
8.0.100.0040.00416.98
8.0.90.0030.00316.82
8.0.80.0130.00816.91
8.0.70.0080.00016.78
8.0.60.0000.00716.84
8.0.50.0000.00816.91
8.0.30.0050.01817.30
8.0.20.0090.01017.40
8.0.10.0050.00317.06
8.0.00.0160.00616.96
7.4.330.0000.00515.00
7.4.320.0040.00416.56
7.4.300.0000.00616.72
7.4.290.0030.00316.76
7.4.280.0050.00316.73
7.4.270.0070.00016.70
7.4.260.0070.00016.55
7.4.250.0070.00016.61
7.4.240.0020.00516.63
7.4.230.0000.00716.75
7.4.220.0120.00616.63
7.4.210.0070.00716.69
7.4.200.0040.00416.56
7.4.160.0090.00616.61
7.4.150.0160.00617.40
7.4.140.0080.00817.86
7.4.130.0070.01016.68
7.4.120.0100.00716.57
7.4.110.0070.01016.46
7.4.100.0170.00016.76
7.4.90.0090.00916.59
7.4.80.0130.00919.39
7.4.70.0090.00916.78
7.4.60.0120.00816.64
7.4.50.0040.00416.45
7.4.40.0070.01016.60
7.4.30.0060.00916.52
7.4.00.0070.01115.00
7.3.330.0030.00313.19
7.3.320.0000.00513.00
7.3.310.0070.00016.42
7.3.300.0030.00316.30
7.3.290.0000.01416.40
7.3.280.0030.01316.30
7.3.270.0150.00617.40
7.3.260.0090.00916.67
7.3.250.0120.00516.45
7.3.240.0090.00916.29
7.3.230.0170.00616.39
7.3.210.0110.00616.50
7.3.200.0060.01219.39
7.3.190.0070.01016.55
7.3.180.0100.00616.27
7.3.170.0110.00416.27
7.3.160.0060.00916.16
7.2.330.0100.01016.62
7.2.320.0130.01016.66
7.2.310.0130.01016.57
7.2.300.0070.01016.61
7.2.290.0060.00916.54
7.2.60.0040.00716.96
7.2.50.0060.00616.89
7.2.00.0000.01419.35
7.1.200.0100.00316.02
7.1.100.0030.00718.26
7.1.70.0000.01317.14
7.1.60.0140.01119.40
7.1.50.0110.01116.68
7.1.00.0130.06722.57
7.0.200.0260.00414.65
7.0.140.0100.06722.08
7.0.60.0100.08719.79
7.0.50.0070.04017.86
7.0.40.0130.07320.14
7.0.30.0270.05320.23
7.0.20.0330.07020.07
7.0.10.0100.04320.21
7.0.00.0100.05720.02
5.6.280.0130.06021.10
5.6.210.0100.06320.70
5.6.200.0000.04318.12
5.6.190.0170.07320.77
5.6.180.0370.07320.59
5.6.170.0270.05020.41
5.6.160.0030.08720.37
5.6.150.0030.04318.26
5.6.140.0170.02718.07
5.6.130.0070.05318.08
5.6.120.0130.06020.95
5.6.110.0200.07721.02
5.6.100.0200.07021.12
5.6.90.0030.06721.09
5.6.80.0070.07720.40
5.5.350.0030.03020.40
5.5.340.0070.07317.96
5.5.330.0000.05320.15
5.5.320.0070.06320.31
5.5.310.0170.06720.55
5.5.300.0130.07017.91
5.5.290.0130.06717.97
5.5.280.0000.04320.67
5.5.270.0100.07020.62
5.5.260.0130.07020.83
5.5.250.0000.04720.70
5.5.240.0230.07020.14
5.4.450.0200.03719.26
5.4.440.0270.04719.54
5.4.430.0470.04019.13
5.4.420.0430.04719.42
5.4.410.0200.04319.26
5.4.400.0730.04319.18
5.4.390.0500.04018.93
5.4.380.1030.05018.68
5.4.370.0870.05318.68
5.4.360.0730.04718.46
5.4.350.0970.05718.68
5.4.340.0900.06018.57
5.4.320.0050.04812.45
5.4.310.0050.04212.45
5.4.300.0040.03812.45
5.4.290.0030.03912.45
5.4.280.0050.04312.34
5.4.270.0100.03712.35
5.4.260.0040.03912.34
5.4.250.0030.03912.35
5.4.240.0040.03712.34
5.4.230.0030.04012.34
5.4.220.0100.03612.34
5.4.210.0050.03512.34
5.4.200.0060.03812.34
5.4.190.0070.03512.34
5.4.180.0070.03612.33
5.4.170.0050.03612.34
5.4.160.0030.03812.34
5.4.150.0040.03712.34
5.4.140.0070.03512.02
5.4.130.0040.03612.01
5.4.120.0060.03711.97
5.4.110.0050.03511.96
5.4.100.0070.03811.97
5.4.90.0060.04411.96
5.4.80.0050.03711.96
5.4.70.0070.03211.96
5.4.60.0060.03311.96
5.4.50.0070.03611.96
5.4.40.0050.04111.95
5.4.30.0080.03911.95
5.4.20.0060.03511.95
5.4.10.0040.03911.95
5.4.00.0070.03411.43
5.3.290.0080.03912.80
5.3.280.0060.03712.71
5.3.270.0080.04812.72
5.3.260.0050.04212.72
5.3.250.0070.04112.72
5.3.240.0080.03412.72
5.3.230.0080.03612.71
5.3.220.0070.03512.68
5.3.210.0030.04912.68
5.3.200.0060.03812.68
5.3.190.0060.03912.68
5.3.180.0050.03912.67
5.3.170.0050.04312.67
5.3.160.0080.03912.67
5.3.150.0030.04312.67
5.3.140.0080.03312.66
5.3.130.0060.04012.66
5.3.120.0100.03512.66
5.3.110.0020.04112.66
5.3.100.0060.03512.12
5.3.90.0090.03812.08
5.3.80.0060.03512.07
5.3.70.0080.04012.08
5.3.60.0020.03912.07
5.3.50.0030.03812.00
5.3.40.0080.03412.00
5.3.30.0050.03511.95
5.3.20.0080.03311.73
5.3.10.0080.03211.70
5.3.00.0060.03611.69
5.2.170.0030.0319.19
5.2.160.0070.0269.19
5.2.150.0060.0389.19
5.2.140.0040.0349.18
5.2.130.0050.0289.14
5.2.120.0090.0369.14
5.2.110.0070.0279.16
5.2.100.0040.0289.15
5.2.90.0060.0359.15
5.2.80.0040.0309.14
5.2.70.0050.0299.14
5.2.60.0040.0309.10
5.2.50.0040.0369.06
5.2.40.0060.0269.04
5.2.30.0030.0329.02
5.2.20.0060.0359.01
5.2.10.0030.0328.93
5.2.00.0060.0278.79
5.1.60.0060.0218.08
5.1.50.0040.0248.07
5.1.40.0050.0238.06
5.1.30.0040.0298.40
5.1.20.0040.0268.43
5.1.10.0060.0318.15
5.1.00.0070.0268.15
5.0.50.0040.0206.63
5.0.40.0040.0256.48
5.0.30.0030.0336.30
5.0.20.0070.0156.27
5.0.10.0040.0216.25
5.0.00.0030.0306.24
4.4.90.0030.0164.78
4.4.80.0000.0174.76
4.4.70.0010.0174.76
4.4.60.0040.0194.75
4.4.50.0040.0194.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0234.85
4.4.10.0060.0174.85
4.4.00.0040.0224.76
4.3.110.0030.0164.66
4.3.100.0020.0154.67
4.3.90.0010.0154.63
4.3.80.0010.0264.58
4.3.70.0030.0144.63
4.3.60.0040.0154.63
4.3.50.0050.0154.63
4.3.40.0020.0264.54
4.3.30.0010.0163.29
4.3.20.0030.0143.27
4.3.10.0020.0173.23
4.3.00.0070.01313.25

preferences:
53.54 ms | 401 KiB | 5 Q