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); }

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.0180.00418.55
8.3.50.0120.00922.05
8.3.40.0110.00718.85
8.3.30.0070.00719.02
8.3.20.0080.00020.29
8.3.10.0060.00322.03
8.3.00.0040.00422.52
8.2.180.0100.01016.38
8.2.170.0180.00022.96
8.2.160.0130.00320.39
8.2.150.0050.00324.18
8.2.140.0000.00924.66
8.2.130.0110.00426.16
8.2.120.0030.00519.61
8.2.110.0030.00620.56
8.2.100.0090.00318.03
8.2.90.0060.00319.22
8.2.80.0080.00018.16
8.2.70.0000.01017.88
8.2.60.0040.00417.93
8.2.50.0070.00318.07
8.2.40.0060.00318.22
8.2.30.0000.00718.13
8.2.20.0050.00217.76
8.2.10.0000.00819.74
8.2.00.0060.00317.83
8.1.280.0070.01025.92
8.1.270.0050.00322.11
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0060.00323.77
8.1.230.0060.00621.03
8.1.220.0000.00917.74
8.1.210.0000.00918.77
8.1.200.0030.00617.47
8.1.190.0040.00417.30
8.1.180.0000.00918.10
8.1.170.0050.00318.67
8.1.160.0070.00022.14
8.1.150.0000.00718.79
8.1.140.0050.00217.52
8.1.130.0070.00017.76
8.1.120.0040.00417.51
8.1.110.0040.00417.63
8.1.100.0000.00717.67
8.1.90.0000.00717.63
8.1.80.0070.00017.59
8.1.70.0040.00417.57
8.1.60.0000.00817.79
8.1.50.0050.00217.64
8.1.40.0040.00417.67
8.1.30.0000.00817.79
8.1.20.0030.00617.87
8.1.10.0030.00517.66
8.1.00.0030.00617.67
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0000.00718.39
8.0.270.0030.00317.20
8.0.260.0030.00316.90
8.0.250.0000.00717.15
8.0.240.0040.00417.10
8.0.230.0040.00417.08
8.0.220.0000.00716.94
8.0.210.0040.00417.04
8.0.200.0050.00317.03
8.0.190.0080.00017.14
8.0.180.0080.00017.08
8.0.170.0000.00816.99
8.0.160.0000.00717.04
8.0.150.0040.00416.89
8.0.140.0000.00717.05
8.0.130.0030.00313.43
8.0.120.0040.00416.99
8.0.110.0040.00416.87
8.0.100.0000.00717.14
8.0.90.0040.00416.93
8.0.80.0110.00716.98
8.0.70.0000.00716.92
8.0.60.0070.00017.07
8.0.50.0040.00416.90
8.0.30.0140.00517.06
8.0.20.0140.00717.40
8.0.10.0030.00617.22
8.0.00.0090.01316.75
7.4.330.0030.00315.09
7.4.320.0060.00016.71
7.4.300.0070.00016.76
7.4.290.0040.00416.80
7.4.280.0030.00316.80
7.4.270.0030.00316.81
7.4.260.0050.00516.64
7.4.250.0000.00716.78
7.4.240.0040.00316.74
7.4.230.0040.00416.64
7.4.220.0090.00916.79
7.4.210.0080.00616.74
7.4.200.0030.00316.79
7.4.190.0020.00516.59
7.4.160.0080.00816.70
7.4.150.0100.01017.40
7.4.140.0130.00517.86
7.4.130.0090.00816.74
7.4.120.0090.00816.79
7.4.110.0080.00816.83
7.4.100.0000.01716.91
7.4.90.0090.00916.79
7.4.80.0040.01819.39
7.4.70.0130.00416.73
7.4.60.0060.01616.80
7.4.50.0040.00416.50
7.4.40.0140.00422.77
7.4.30.0120.00316.54
7.4.00.0070.00715.06
7.3.330.0050.00013.26
7.3.320.0060.00013.13
7.3.310.0030.00316.27
7.3.300.0030.00316.44
7.3.290.0030.01616.37
7.3.280.0030.01416.40
7.3.270.0090.00917.40
7.3.260.0130.00316.77
7.3.250.0100.00716.53
7.3.240.0100.01416.42
7.3.230.0140.00416.43
7.3.210.0150.00316.48
7.3.200.0100.00719.39
7.3.190.0090.00916.39
7.3.180.0030.01316.60
7.3.170.0060.01516.52
7.3.160.0030.01916.37
7.3.120.0060.00915.20
7.2.330.0030.01416.81
7.2.320.0100.01416.74
7.2.310.0050.01116.72
7.2.300.0110.00716.74
7.2.290.0100.01316.73
7.2.00.0040.01119.68
7.1.100.0060.00618.51
7.1.70.0030.01017.09
7.1.60.0040.00817.61
7.1.50.0040.01817.18
7.1.00.0070.07322.33
7.0.200.0040.00417.01
7.0.140.0030.04721.92
7.0.60.0070.07319.94
7.0.50.0070.04717.83
7.0.40.0030.05720.29
7.0.30.0170.04020.35
7.0.20.0330.07020.02
7.0.10.0270.06720.13
7.0.00.0070.07720.13
5.6.280.0000.07720.92
5.6.210.0100.06720.59
5.6.200.0130.08018.16
5.6.190.0070.08320.57
5.6.180.0230.04020.39
5.6.170.0200.08320.47
5.6.160.0170.07720.48
5.6.150.0130.07018.17
5.6.140.0000.04018.25
5.6.130.0030.08318.18
5.6.120.0100.08021.13
5.6.110.0200.07020.88
5.6.100.0070.06020.96
5.6.90.0100.07320.95
5.6.80.0070.03320.41
5.6.70.3500.04020.40
5.5.350.0030.03720.33
5.5.340.0070.06317.98
5.5.330.0070.08020.46
5.5.320.0270.07020.17
5.5.310.0330.06720.20
5.5.300.0030.04018.01
5.5.290.0030.05017.94
5.5.280.0100.04720.88
5.5.270.0030.04720.72
5.5.260.0000.05320.84
5.5.250.0170.07320.71
5.5.240.0170.07020.15
5.4.450.0170.06019.41
5.4.440.0100.06719.46
5.4.430.0070.05719.41
5.4.420.0070.05719.45
5.4.410.0070.08018.87
5.4.400.0300.05018.80
5.4.390.0270.05718.53
5.4.380.0270.05018.56
5.4.370.0030.06018.65
5.4.360.0130.04318.72
5.4.350.0090.03711.97
5.4.340.0090.03211.97
5.4.320.0050.04512.46
5.4.310.0100.03812.45
5.4.300.0080.05712.45
5.4.290.0040.04212.45
5.4.280.0090.03812.35
5.4.270.0130.06718.74
5.4.260.0030.06318.89
5.4.250.0100.07318.89
5.4.240.0130.05718.88
5.4.230.0230.06018.87
5.4.220.0130.05718.93
5.4.210.0000.06719.02
5.4.200.0170.06318.76
5.4.190.0170.05018.75
5.4.180.0230.04019.00
5.4.170.0170.06318.89
5.4.160.0300.06318.75
5.4.150.0270.05018.63
5.4.140.0130.05016.61
5.4.130.0100.06016.32
5.4.120.0070.06016.58
5.4.110.0030.06316.53
5.4.100.0030.06316.33
5.4.90.0130.04316.40
5.4.80.0070.05016.23
5.4.70.0130.04716.33
5.4.60.0170.06316.45
5.4.50.0100.06716.38
5.4.40.0130.06016.30
5.4.30.0100.04716.30
5.4.20.0170.06016.21
5.4.10.0170.07016.11
5.4.00.0030.07315.92
5.3.290.0070.03812.80
5.3.280.0130.07014.63
5.3.270.0100.08014.62
5.3.260.0170.04714.45
5.3.250.0030.06314.60
5.3.240.0130.08014.30
5.3.230.0230.04014.61
5.3.220.0130.05314.43
5.3.210.0100.05714.34
5.3.200.0100.05714.26
5.3.190.0100.07014.40
5.3.180.0030.07314.61
5.3.170.0030.05314.41
5.3.160.0070.05014.35
5.3.150.0000.08714.56
5.3.140.0130.05014.32
5.3.130.0100.07014.59
5.3.120.0100.07314.56
5.3.110.0130.05314.54
5.3.100.0130.04713.87
5.3.90.0070.05014.03
5.3.80.0100.05313.86
5.3.70.0030.05713.93
5.3.60.0100.06013.99
5.3.50.0170.05013.88
5.3.40.0000.06314.04
5.3.30.0200.04713.75
5.3.20.0030.05313.55
5.3.10.0100.05713.34
5.3.00.0030.05713.66
5.2.170.0170.05011.07
5.2.160.0030.05011.29
5.2.150.0070.05711.07
5.2.140.0200.04710.97
5.2.130.0030.05011.25
5.2.120.0130.04711.00
5.2.110.0100.04711.03
5.2.100.0100.03711.11
5.2.90.0100.05711.19
5.2.80.0070.04011.01
5.2.70.0070.04311.10
5.2.60.0030.05011.05
5.2.50.0100.06011.17
5.2.40.0130.03711.01
5.2.30.0130.03710.90
5.2.20.0070.03710.89
5.2.10.0030.04010.94
5.2.00.0070.04310.87
5.1.60.0030.03710.09
5.1.50.0070.0379.96
5.1.40.0070.04310.13
5.1.30.0030.04010.11
5.1.20.0070.04310.25
5.1.10.0070.03310.26
5.1.00.0070.04310.21
5.0.50.0100.0338.60
5.0.40.0100.0308.17
5.0.30.0030.0578.11
5.0.20.0100.0208.16
5.0.10.0070.0338.11
5.0.00.0070.0478.24
4.4.90.0070.0235.77
4.4.80.0130.0135.78
4.4.70.0100.0175.78
4.4.60.0030.0235.75
4.4.50.0000.0235.70
4.4.40.0070.0335.69
4.4.30.0070.0205.77
4.4.20.0030.0235.79
4.4.10.0000.0275.75
4.4.00.0070.0335.78
4.3.110.0000.0305.70
4.3.100.0030.0205.72
4.3.90.0030.0305.66
4.3.80.0030.0335.80
4.3.70.0070.0175.68
4.3.60.0070.0205.70
4.3.50.0030.0275.70
4.3.40.0130.0235.71
4.3.30.0070.0205.63
4.3.20.0030.0275.63
4.3.10.0000.0305.63
4.3.00.0070.0236.71

preferences:
41.08 ms | 401 KiB | 5 Q