3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error = array("property" => "", "message" => "the property whatever is required"); if (empty($error['property']) && preg_match("/is required$/", $error['message']) && preg_match("/the property (.+) is required/", $error['message'], $matches)) { var_dump($matches); } else { echo "haha"; }

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.40.0150.00318.95
8.3.30.0070.00719.22
8.3.20.0050.00320.46
8.3.10.0040.00422.21
8.3.00.0040.00422.51
8.2.170.0140.00422.96
8.2.160.0150.00020.39
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.61
8.2.110.0030.00619.20
8.2.100.0110.00017.84
8.2.90.0040.00419.26
8.2.80.0030.00617.97
8.2.70.0030.00617.88
8.2.60.0000.00818.05
8.2.50.0080.00318.07
8.2.40.0040.00418.22
8.2.30.0040.00418.04
8.2.20.0000.00817.89
8.2.10.0040.00419.49
8.2.00.0050.00317.84
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0030.01028.09
8.1.240.0180.00021.99
8.1.230.0040.00722.72
8.1.220.0000.00817.76
8.1.210.0050.00318.77
8.1.200.0100.00017.34
8.1.190.0050.00317.30
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0030.00522.07
8.1.150.0050.00218.72
8.1.140.0040.00417.66
8.1.130.0070.00017.89
8.1.120.0000.00717.67
8.1.110.0000.00817.61
8.1.100.0040.00417.64
8.1.90.0000.00717.52
8.1.80.0020.00517.65
8.1.70.0000.00717.64
8.1.60.0030.00517.78
8.1.50.0030.00517.65
8.1.40.0040.00417.69
8.1.30.0080.00017.67
8.1.20.0000.00817.73
8.1.10.0050.00317.68
8.1.00.0040.00417.72
8.0.300.0000.00918.77
8.0.290.0040.00417.18
8.0.280.0080.00018.35
8.0.270.0000.00717.35
8.0.260.0030.00316.92
8.0.250.0070.00017.14
8.0.240.0040.00417.15
8.0.230.0040.00417.12
8.0.220.0000.00717.03
8.0.210.0030.00317.07
8.0.200.0040.00417.00
8.0.190.0000.00817.00
8.0.180.0000.00817.04
8.0.170.0000.00917.03
8.0.160.0040.00417.09
8.0.150.0040.00417.01
8.0.140.0000.00817.05
8.0.130.0050.00313.49
8.0.120.0000.00817.05
8.0.110.0070.00016.92
8.0.100.0000.00716.92
8.0.90.0040.00417.11
8.0.80.0070.01016.99
8.0.70.0000.00717.00
8.0.60.0040.00417.05
8.0.50.0040.00416.89
8.0.30.0130.01017.33
8.0.20.0150.00417.43
8.0.10.0080.00017.13
8.0.00.0150.00716.75
7.4.330.0000.00615.04
7.4.320.0000.00616.76
7.4.300.0040.00416.73
7.4.290.0000.00816.85
7.4.280.0000.00716.77
7.4.270.0000.00716.66
7.4.260.0070.00316.78
7.4.250.0050.00316.81
7.4.240.0050.00216.78
7.4.230.0030.00316.54
7.4.220.0130.00316.68
7.4.210.0110.00716.89
7.4.200.0000.00716.93
7.4.190.0070.00016.63
7.4.160.0080.00816.73
7.4.150.0060.01217.40
7.4.140.0150.00617.86
7.4.130.0050.01416.87
7.4.120.0070.01016.72
7.4.110.0170.00316.63
7.4.100.0120.00816.66
7.4.90.0120.00616.53
7.4.80.0170.00619.39
7.4.70.0080.00816.73
7.4.60.0060.01516.53
7.4.50.0060.00316.77
7.4.40.0030.01022.77
7.4.30.0070.01016.77
7.4.00.0070.00714.99
7.3.330.0020.00213.33
7.3.320.0030.00313.34
7.3.310.0000.00816.55
7.3.300.0000.00716.45
7.3.290.0030.01316.47
7.3.280.0080.00716.45
7.3.270.0070.01117.40
7.3.260.0100.00616.74
7.3.250.0170.00416.43
7.3.240.0030.01316.41
7.3.230.0090.01216.41
7.3.210.0100.00716.67
7.3.200.0120.00619.39
7.3.190.0150.00916.79
7.3.180.0060.00916.71
7.3.170.0130.00316.46
7.3.160.0130.00916.46
7.3.120.0030.01215.25
7.3.10.0100.00716.52
7.3.00.0050.00816.43
7.2.330.0100.00716.61
7.2.320.0120.00616.68
7.2.310.0100.00616.65
7.2.300.0170.00316.80
7.2.290.0090.00916.77
7.2.130.0100.00716.69
7.2.120.0100.00716.52
7.2.110.0060.01016.88
7.2.100.0080.01416.92
7.2.90.0090.00916.95
7.2.80.0120.00616.58
7.2.70.0070.01016.99
7.2.60.0180.00016.75
7.2.50.0070.01116.80
7.2.40.0100.01017.07
7.2.30.0130.00316.60
7.2.20.0140.00016.96
7.2.10.0070.01116.97
7.2.00.0100.00717.97
7.1.250.0150.00215.69
7.1.240.0120.00315.87
7.1.230.0100.00715.62
7.1.220.0080.00815.82
7.1.210.0150.00415.97
7.1.200.0100.00716.00
7.1.190.0100.00715.47
7.1.180.0130.00015.67
7.1.170.0170.00015.93
7.1.160.0110.00715.75
7.1.150.0100.00915.59
7.1.140.0040.00816.04
7.1.130.0090.00915.85
7.1.120.0190.00415.49
7.1.110.0070.00715.46
7.1.100.0150.00415.98
7.1.90.0180.00415.96
7.1.80.0160.00015.93
7.1.70.0080.00316.38
7.1.60.0110.00316.56
7.1.50.0070.01016.57
7.1.40.0150.00715.93
7.1.30.0120.00415.77
7.1.20.0130.00615.58
7.1.10.0140.00015.79
7.1.00.0070.04318.97
7.0.330.0100.00615.41
7.0.320.0180.00015.12
7.0.310.0170.00414.84
7.0.300.0150.00615.32
7.0.290.0130.00315.35
7.0.280.0110.00515.27
7.0.270.0100.00715.13
7.0.260.0070.01415.13
7.0.250.0160.00415.00
7.0.240.0180.00715.18
7.0.230.0240.00315.40
7.0.220.0160.00315.34
7.0.210.0050.01015.15
7.0.200.0090.00816.12
7.0.190.0110.00715.23
7.0.180.0090.00615.13
7.0.170.0110.00715.34
7.0.160.0110.00315.01
7.0.150.0120.00415.41
7.0.140.0070.02518.80
7.0.130.0100.01015.24
7.0.120.0130.00615.32
7.0.110.0120.00815.39
7.0.100.0160.00315.00
7.0.90.0090.00915.55
7.0.80.0140.00715.34
7.0.70.0200.00315.13
7.0.60.0090.02617.65
7.0.50.0140.04516.66
7.0.40.0030.05116.62
7.0.30.0240.01816.57
7.0.20.0200.03416.86
7.0.10.0130.02316.85
7.0.00.0080.05016.78
5.6.380.0090.00913.88
5.6.370.0140.00414.25
5.6.360.0040.01114.09
5.6.350.0060.00914.43
5.6.340.0080.01314.37
5.6.330.0160.01414.21
5.6.320.0150.01514.35
5.6.310.0090.01314.30
5.6.300.0030.00714.30
5.6.290.0160.00314.14
5.6.280.0060.03817.60
5.6.270.0030.01414.44
5.6.260.0180.00614.21
5.6.250.0170.01314.19
5.6.240.0120.00814.28
5.6.230.0100.00814.27
5.6.220.0100.01014.25
5.6.210.0120.04517.54
5.6.200.0140.04115.97
5.6.190.0210.03317.21
5.6.180.0210.02617.42
5.6.170.0250.04017.26
5.6.160.0120.04717.35
5.6.150.0190.04115.95
5.6.140.0150.04516.04
5.6.130.0190.02816.24
5.6.120.0180.04317.63
5.6.110.0220.04017.42
5.6.100.0210.04017.54
5.6.90.0130.04317.59
5.6.80.0120.04717.11
5.6.70.0080.00814.25
5.6.60.0290.01014.05
5.6.50.0310.00313.71
5.6.40.0250.00014.03
5.6.30.0180.01113.70
5.6.20.0150.01114.07
5.6.10.0140.01414.14
5.6.00.0280.00414.19
5.5.380.0210.00011.05
5.5.370.0030.01010.92
5.5.360.0140.00611.36
5.5.350.0140.04415.77
5.5.340.0090.02514.43
5.5.330.0120.02215.61
5.5.320.0290.03715.62
5.5.310.0240.04515.62
5.5.300.0150.02714.51
5.5.290.0200.02814.39
5.5.280.0140.04115.90
5.5.270.0160.04516.02
5.5.260.0100.04515.89
5.5.250.0110.03515.86
5.5.240.0110.03915.63
5.5.230.0080.01111.02
5.5.220.0080.00610.67
5.5.210.0100.00710.59
5.5.200.0120.00310.99
5.5.190.0180.00910.62
5.5.180.0230.00811.02
5.5.170.0120.00310.45
5.5.160.0230.00710.63
5.5.150.0090.00610.94
5.5.140.0170.00610.63
5.5.130.0220.00310.97
5.5.120.0160.00710.70
5.5.110.0190.00610.71
5.5.100.0090.00610.81
5.5.90.0150.00410.67
5.5.80.0200.00310.60
5.5.70.0100.00510.68
5.5.60.0060.00611.08
5.5.50.0100.00010.54
5.5.40.0000.00710.76
5.5.30.0030.00710.86
5.5.20.0060.00310.61
5.5.10.0110.00710.75
5.5.00.0110.00710.60
5.4.450.0490.02615.21
5.4.440.0560.02815.24
5.4.430.0210.02315.30
5.4.420.0200.02515.07
5.4.410.0120.03314.87
5.4.400.0250.02514.81
5.4.390.0090.03014.80
5.4.380.0150.03014.80
5.4.370.0270.02714.99
5.4.360.0260.03214.75
5.4.350.0240.02614.81
5.4.340.0280.02814.95
5.4.330.0300.00710.98
5.4.320.0190.02411.86
5.4.310.0200.02011.70
5.4.300.0130.02311.70
5.4.290.0080.02211.77
5.4.280.0160.02311.69
5.4.270.0180.03314.66
5.4.260.0150.02814.94
5.4.250.0200.03514.93
5.4.240.0130.03414.94
5.4.230.0130.02814.87
5.4.220.0110.03514.86
5.4.210.0080.02814.85
5.4.200.0150.02314.97
5.4.190.0130.02714.91
5.4.180.0160.03015.11
5.4.170.0150.03114.71
5.4.160.0080.02815.01
5.4.150.0050.03214.95
5.4.140.0050.02813.68
5.4.130.0080.02813.64
5.4.120.0030.02913.50
5.4.110.0070.02713.61
5.4.100.0050.03113.61
5.4.90.0070.03713.75
5.4.80.0030.03413.55
5.4.70.0080.02713.63
5.4.60.0100.03513.72
5.4.50.0080.03513.62
5.4.40.0050.03013.60
5.4.30.0090.03613.57
5.4.20.0090.02813.69
5.4.10.0130.02813.51
5.4.00.0060.03013.37
5.3.290.0190.02211.69
5.3.280.0150.02812.43
5.3.270.0130.03012.47
5.3.260.0060.04312.48
5.3.250.0060.04012.47
5.3.240.0110.03012.47
5.3.230.0080.03012.35
5.3.220.0060.02912.36
5.3.210.0170.02812.35
5.3.200.0090.03612.40
5.3.190.0080.02512.30
5.3.180.0100.03612.48
5.3.170.0050.02912.52
5.3.160.0070.03012.54
5.3.150.0020.03112.41
5.3.140.0120.03312.45
5.3.130.0030.03712.42
5.3.120.0180.03012.54
5.3.110.0050.04212.57
5.3.100.0030.03312.22
5.3.90.0050.02912.07
5.3.80.0120.02712.20
5.3.70.0070.02912.12
5.3.60.0020.03212.36
5.3.50.0050.03812.10
5.3.40.0050.03612.13
5.3.30.0010.03112.11
5.3.20.0030.02812.10
5.3.10.0050.02811.99
5.3.00.0110.03111.76
5.2.170.0030.02510.38
5.2.160.0080.02810.30
5.2.150.0070.02810.32
5.2.140.0050.02310.23
5.2.130.0030.02310.13
5.2.120.0030.02210.33
5.2.110.0070.02310.30
5.2.100.0090.02010.32
5.2.90.0050.02410.16
5.2.80.0050.03110.23
5.2.70.0050.02310.17
5.2.60.0050.02310.06
5.2.50.0070.01910.24
5.2.40.0020.02510.12
5.2.30.0050.03010.15
5.2.20.0080.02610.13
5.2.10.0030.02810.09
5.2.00.0030.0329.96
5.1.60.0030.0279.23
5.1.50.0050.0259.23
5.1.40.0030.0309.21
5.1.30.0030.0269.47
5.1.20.0080.0219.46
5.1.10.0020.0229.38
5.1.00.0020.0259.38
5.0.50.0000.0208.05
5.0.40.0020.0238.06
5.0.30.0070.0227.92
5.0.20.0030.0147.91
5.0.10.0030.0227.84
5.0.00.0050.0217.96
4.4.90.0000.0206.80
4.4.80.0000.0176.72
4.4.70.0000.0176.79
4.4.60.0000.0166.73
4.4.50.0000.0186.73
4.4.40.0080.0206.73
4.4.30.0030.0136.79
4.4.20.0020.0126.77
4.4.10.0000.0146.76
4.4.00.0050.0226.74
4.3.110.0020.0136.73
4.3.100.0030.0136.69
4.3.90.0030.0146.69
4.3.80.0060.0206.72
4.3.70.0000.0166.72
4.3.60.0080.0116.69
4.3.50.0020.0156.69
4.3.40.0020.0206.69
4.3.30.0030.0106.69
4.3.20.0030.0156.69
4.3.10.0050.0116.69
4.3.00.0080.0147.32

preferences:
49.97 ms | 400 KiB | 5 Q