3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = "555 Test Drive, Testville, CA 98773"; preg_match("/(.+), (\w+), (\w+)\s(\w+)/", $address, $matches); print_r($matches); list($original, $street, $city, $state, $zip) = $matches; echo $street . "\n" . $city . "\n" . $state . "\n" . $zip;

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.0190.00016.75
8.3.50.0120.00721.99
8.3.40.0070.01018.96
8.3.30.0180.00018.79
8.3.20.0000.00820.34
8.3.10.0030.00520.61
8.3.00.0080.00020.72
8.2.180.0110.00718.63
8.2.170.0100.00722.96
8.2.160.0070.01419.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.48
8.2.120.0070.00026.35
8.2.110.0100.00021.16
8.2.100.0040.00817.97
8.2.90.0030.00618.04
8.2.80.0040.00419.04
8.2.70.0000.00817.87
8.2.60.0090.00018.16
8.2.50.0040.00418.10
8.2.40.0050.00520.44
8.2.30.0050.00219.64
8.2.20.0000.00817.88
8.2.10.0040.00418.15
8.2.00.0000.00718.13
8.1.280.0070.01425.92
8.1.270.0050.00323.88
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0090.00022.19
8.1.230.0070.00420.86
8.1.220.0000.00817.74
8.1.210.0040.00418.91
8.1.200.0100.00017.48
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0050.00318.55
8.1.160.0040.00422.57
8.1.150.0070.00018.96
8.1.140.0030.00519.60
8.1.130.0040.00417.59
8.1.120.0050.00217.64
8.1.110.0060.00317.58
8.1.100.0000.00717.48
8.1.90.0000.00817.59
8.1.80.0040.00417.69
8.1.70.0050.00917.53
8.1.60.0000.00817.61
8.1.50.0050.00317.55
8.1.40.0120.00017.71
8.1.30.0030.00617.68
8.1.20.0050.00317.82
8.1.10.0040.00417.63
8.1.00.0000.00817.53
8.0.300.0030.00519.96
8.0.290.0000.00816.75
8.0.280.0000.00718.41
8.0.270.0040.00416.95
8.0.260.0030.00317.21
8.0.250.0070.00017.05
8.0.240.0040.00416.96
8.0.230.0000.00717.05
8.0.220.0000.00817.02
8.0.210.0030.00517.03
8.0.200.0030.00317.02
8.0.190.0050.00317.04
8.0.180.0040.00417.02
8.0.170.0040.00417.03
8.0.160.0000.00716.94
8.0.150.0000.00716.99
8.0.140.0030.00316.88
8.0.130.0030.00313.43
8.0.120.0000.00816.98
8.0.110.0000.00717.00
8.0.100.0040.00417.02
8.0.90.0050.00216.99
8.0.80.0060.00916.92
8.0.70.0040.00417.07
8.0.60.0040.00416.98
8.0.50.0070.00017.05
8.0.30.0120.01217.07
8.0.20.0120.00717.44
8.0.10.0070.00017.07
8.0.00.0080.01217.04
7.4.330.0000.00515.08
7.4.320.0000.00716.60
7.4.300.0070.00016.80
7.4.290.0040.00416.87
7.4.280.0030.00516.73
7.4.270.0070.00316.83
7.4.260.0030.00316.78
7.4.250.0000.00816.67
7.4.240.0000.00716.82
7.4.230.0040.00416.77
7.4.220.0090.00916.60
7.4.210.0100.01016.86
7.4.200.0070.00016.59
7.4.160.0120.00616.70
7.4.150.0070.01117.40
7.4.140.0090.01417.86
7.4.130.0060.01316.80
7.4.120.0120.00616.75
7.4.110.0130.00316.71
7.4.100.0090.00916.68
7.4.90.0080.00916.59
7.4.80.0040.01419.39
7.4.70.0090.01316.58
7.4.60.0030.01616.72
7.4.50.0060.00916.57
7.4.40.0070.01116.46
7.4.30.0120.00416.77
7.4.10.0090.00915.06
7.4.00.0070.01215.13
7.3.330.0030.00313.29
7.3.320.0050.00013.38
7.3.310.0070.00016.29
7.3.300.0030.00416.50
7.3.290.0080.00916.45
7.3.280.0070.01116.48
7.3.270.0100.01017.40
7.3.260.0100.01616.50
7.3.250.0090.00916.60
7.3.240.0100.00916.66
7.3.230.0170.00716.51
7.3.210.0000.01716.77
7.3.200.0100.00616.72
7.3.190.0160.00316.40
7.3.180.0030.01316.63
7.3.170.0090.01716.61
7.3.160.0040.01916.75
7.3.130.0070.01314.95
7.3.120.0100.00815.05
7.3.110.0050.01414.99
7.3.100.0080.00614.93
7.3.90.0030.01114.82
7.3.80.0020.01015.05
7.3.70.0080.00814.84
7.3.60.0070.00614.92
7.3.50.0050.00715.00
7.3.40.0030.01215.01
7.3.30.0030.01315.02
7.3.20.0010.01016.59
7.3.10.0000.01716.86
7.3.00.0100.00416.85
7.2.330.0060.01216.83
7.2.320.0190.00616.94
7.2.310.0110.00616.87
7.2.300.0160.00316.95
7.2.290.0040.01216.70
7.2.260.0040.01515.18
7.2.250.0120.00815.24
7.2.240.0080.00715.30
7.2.230.0040.01115.34
7.2.220.0110.00615.09
7.2.210.0120.00215.22
7.2.200.0030.01015.00
7.2.190.0060.00415.24
7.2.180.0120.00315.25
7.2.170.0050.01115.05
7.2.160.0060.00615.19
7.2.150.0140.00417.18
7.2.140.0000.01717.23
7.2.130.0040.00816.84
7.2.120.0070.01116.98
7.2.110.0090.00617.27
7.2.100.0070.00316.89
7.2.90.0080.00817.11
7.2.80.0090.00317.17
7.2.70.0090.00617.23
7.2.60.0080.00617.21
7.2.50.0060.00617.27
7.2.40.0110.00817.24
7.2.30.0110.00817.13
7.2.20.0030.01617.15
7.2.10.0110.00717.05
7.2.00.0050.00918.38
7.1.330.0090.00515.87
7.1.320.0030.00916.12
7.1.310.0020.01316.17
7.1.300.0050.01015.81
7.1.290.0090.00415.81
7.1.280.0070.00615.86
7.1.270.0050.00915.88
7.1.260.0050.00716.02
7.1.250.0060.00915.90
7.1.240.0070.00715.96
7.1.230.0060.00615.89
7.1.220.0100.00315.90
7.1.210.0100.00715.77
7.1.200.0060.00515.95
7.1.190.0140.00015.90
7.1.180.0000.01215.64
7.1.170.0060.00916.01
7.1.160.0000.01315.87
7.1.150.0070.01015.76
7.1.140.0100.00716.02
7.1.130.0090.00916.14
7.1.120.0120.00315.93
7.1.110.0100.00615.77
7.1.100.0080.00617.21
7.1.90.0000.01415.95
7.1.80.0070.00615.93
7.1.70.0030.01116.43
7.1.60.0050.01017.69
7.1.50.0000.01515.73
7.1.40.0000.01415.97
7.1.30.0030.01216.11
7.1.20.0030.01315.88
7.1.10.0060.01215.88
7.1.00.0050.04319.06
7.0.330.0110.00015.68
7.0.320.0100.00015.46
7.0.310.0020.00715.44
7.0.300.0090.00315.47
7.0.290.0100.00315.63
7.0.280.0070.00715.69
7.0.270.0060.01215.26
7.0.260.0070.00815.64
7.0.250.0040.01115.63
7.0.240.0000.01315.64
7.0.230.0000.01015.52
7.0.220.0030.01015.61
7.0.210.0120.00315.66
7.0.200.0040.00616.36
7.0.190.0070.00715.52
7.0.180.0120.00315.56
7.0.170.0050.00915.36
7.0.160.0000.01515.67
7.0.150.0080.00415.70
7.0.140.0060.01015.68
7.0.130.0120.00315.72
7.0.120.0030.00915.48
7.0.110.0090.00315.61
7.0.100.0090.00615.64
7.0.90.0080.00815.53
7.0.80.0070.01015.70
7.0.70.0030.01215.50
7.0.60.0170.04117.90
7.0.50.0050.04716.73
7.0.40.0160.03016.84
7.0.30.0170.03216.90
7.0.20.0250.03617.00
7.0.10.0120.04316.98
7.0.00.0170.03417.02
5.6.400.0060.00614.43
5.6.390.0090.00614.01
5.6.380.0090.00614.38
5.6.370.0040.00714.39
5.6.360.0040.01414.39
5.6.350.0100.00614.32
5.6.340.0000.01414.59
5.6.330.0040.00714.48
5.6.320.0050.01014.62
5.6.310.0030.01314.39
5.6.300.0000.01114.53
5.6.290.0030.01414.25
5.6.280.0060.03817.98
5.6.270.0040.00714.35
5.6.260.0070.00714.56
5.6.250.0070.00714.53
5.6.240.0030.01414.66
5.6.230.0070.00814.42
5.6.220.0000.01414.02
5.6.210.0100.04317.45
5.6.200.0050.04216.23
5.6.190.0230.03717.55
5.6.180.0350.04417.50
5.6.170.0160.03017.35
5.6.160.0200.04017.41
5.6.150.0130.04717.46
5.6.140.0280.03217.45
5.6.130.0150.04817.17
5.6.120.0080.03317.42
5.6.110.0100.03517.54
5.6.100.0150.03417.58
5.6.90.0230.02817.20
5.6.80.0240.02716.94
5.6.70.0150.03417.01
5.6.60.0200.03717.22
5.6.50.0150.04016.89
5.6.40.0030.04216.94
5.6.30.0250.03817.00
5.6.20.0120.03917.20
5.6.10.0260.02417.15
5.6.00.0150.03717.04
5.5.380.0100.00714.29
5.5.370.0000.01414.34
5.5.360.0070.01114.64
5.5.350.0040.04617.43
5.5.340.0030.03016.06
5.5.330.0180.03817.21
5.5.320.0160.04017.34
5.5.310.0210.02717.48
5.5.300.0170.03217.16
5.5.290.0180.04217.39
5.5.280.0050.03717.26
5.5.270.0170.02317.19
5.5.260.0170.03317.29
5.5.250.0130.03717.18
5.5.240.0240.03916.82
5.5.230.0190.02816.97
5.5.220.0220.03316.72
5.5.210.0300.04216.98
5.5.200.0200.04716.96
5.5.190.0140.04117.02
5.5.180.0120.03316.93
5.5.170.0100.00714.04
5.5.160.0160.03416.90
5.5.150.0130.03116.88
5.5.140.0170.02816.73
5.5.130.0150.03516.84
5.5.120.0290.03516.97
5.5.110.0150.03516.88
5.5.100.0280.03316.70
5.5.90.0180.02916.84
5.5.80.0140.03516.83
5.5.70.0240.03016.94
5.5.60.0090.03516.83
5.5.50.0160.04316.63
5.5.40.0180.03416.84
5.5.30.0120.03216.68
5.5.20.0080.05216.87
5.5.10.0120.03316.79
5.5.00.0170.03016.61

preferences:
54.77 ms | 401 KiB | 5 Q