3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'text^name1^PETER~text^secondname1^SMITH~text^phone1^023482348~text^adres1^STREETAVENUE 1B~text^postcode1^91201CA~text^woonplaats1^LIVINGPLACE~email^email1^peter@example.com'; preg_match_all('/(?:text|email)\^([^^]+)\^([^^~]*)/', $string, $matches, PREG_SET_ORDER); var_export( array_column($matches, 2, 1) );

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.4.130.0070.00417.97
8.4.120.0140.00820.54
8.4.110.0040.00422.40
8.4.100.0140.00718.13
8.4.90.0090.01018.50
8.4.80.0050.00319.79
8.4.70.0130.00518.14
8.4.60.0120.00918.72
8.4.50.0120.00924.00
8.4.40.0190.00020.27
8.4.30.0120.00920.13
8.4.20.0060.01318.61
8.4.10.0080.01219.61
8.3.260.0070.01216.80
8.3.250.0100.00920.70
8.3.240.0060.00416.65
8.3.230.0070.01116.66
8.3.220.0040.00417.03
8.3.210.0080.01116.62
8.3.200.0030.00616.68
8.3.190.0080.00816.91
8.3.180.0100.00916.54
8.3.170.0090.00916.70
8.3.160.0120.00320.18
8.3.150.0170.00716.77
8.3.140.0050.00317.14
8.3.130.0040.00418.69
8.3.120.0040.01118.94
8.3.110.0080.00016.69
8.3.100.0060.00316.73
8.3.90.0130.00626.77
8.3.80.0030.01019.36
8.3.70.0070.01117.00
8.3.60.0030.01318.68
8.3.50.0070.01416.33
8.3.40.0040.01118.79
8.3.30.0120.00318.84
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0100.00820.80
8.2.280.0160.00518.64
8.2.270.0080.00017.19
8.2.260.0110.00418.63
8.2.250.0030.00716.59
8.2.240.0060.00318.96
8.2.230.0080.00020.94
8.2.220.0000.00924.06
8.2.210.0120.00626.77
8.2.200.0090.00018.88
8.2.190.0100.01016.61
8.2.180.0110.00725.92
8.2.170.0140.00419.09
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00426.35
8.2.110.0070.00319.26
8.2.100.0110.00419.64
8.2.90.0050.00317.75
8.2.80.0080.00018.87
8.2.70.0030.00617.63
8.2.60.0050.00317.63
8.2.50.0000.00917.63
8.2.40.0030.00518.03
8.2.30.0040.00417.93
8.2.20.0070.00018.07
8.2.10.0040.00419.29
8.2.00.0050.00219.27
8.1.330.0110.00722.16
8.1.320.0090.01016.22
8.1.310.0030.00518.54
8.1.300.0040.00719.73
8.1.290.0060.00630.84
8.1.280.0070.00725.92
8.1.270.0060.01222.19
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0040.00423.84
8.1.230.0040.00720.88
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00817.35
8.1.180.0050.00518.10
8.1.170.0040.00418.77
8.1.160.0040.00420.82
8.1.150.0070.00018.84
8.1.140.0000.00718.91
8.1.130.0070.00020.15
8.1.120.0070.00017.52
8.1.110.0060.00317.52
8.1.100.0030.00517.60
8.1.90.0000.00717.49
8.1.80.0040.00417.56
8.1.70.0080.00017.55
8.1.60.0030.00617.71
8.1.50.0050.00317.67
8.1.40.0060.00317.56
8.1.30.0040.00417.68
8.1.20.0080.00017.70
8.1.10.0030.00617.58
8.1.00.0000.00817.63
8.0.300.0020.00518.77
8.0.290.0050.00316.75
8.0.280.0030.00318.46
8.0.270.0000.00718.01
8.0.260.0000.00618.47
8.0.250.0040.00416.94
8.0.240.0000.00716.93
8.0.230.0000.00817.05
8.0.220.0030.00316.93
8.0.210.0000.00717.01
8.0.200.0070.00017.00
8.0.190.0080.00017.06
8.0.180.0050.00316.92
8.0.170.0030.00616.91
8.0.160.0050.00317.00
8.0.150.0000.00816.82
8.0.140.0030.00416.86
8.0.130.0000.00613.38
8.0.120.0040.00416.89
8.0.110.0050.00217.05
8.0.100.0000.00716.78
8.0.90.0000.00717.05
8.0.80.0100.00816.96
8.0.70.0040.00416.89
8.0.60.0040.00416.95
8.0.50.0070.00016.99
8.0.30.0150.00616.88
8.0.20.0160.00617.04
8.0.10.0090.00617.11
8.0.00.0100.00617.16
7.4.330.0000.00616.78
7.4.320.0030.00316.72
7.4.300.0030.00316.72
7.4.290.0080.00316.64
7.4.280.0030.00516.57
7.4.270.0000.00716.69
7.4.260.0000.00513.42
7.4.250.0080.00016.64
7.4.240.0030.00316.68
7.4.230.0000.00716.60
7.4.220.0040.00416.81
7.4.210.0050.01016.73
7.4.200.0000.00716.56
7.4.160.0100.00616.86
7.4.150.0170.00716.75
7.4.140.0160.01916.63
7.4.130.0060.00816.59
7.4.120.0160.00516.69
7.4.110.0130.01016.52
7.4.100.0130.01016.75
7.4.90.0040.01916.76
7.4.80.0000.01916.66
7.4.70.0040.01816.71
7.4.60.0110.00916.76
7.4.50.0060.01316.48
7.4.40.0090.00916.45
7.4.30.0000.01516.44
7.4.20.0150.00016.43
7.4.10.0040.02016.65
7.4.00.0170.00316.63
7.3.330.0070.00016.24
7.3.320.0050.00013.16
7.3.310.0030.00416.11
7.3.300.0030.00316.30
7.3.290.0080.01016.29
7.3.270.0090.00616.36
7.3.260.0120.00316.27
7.3.250.0040.01316.35
7.3.240.0100.01416.24
7.3.230.0040.01516.34
7.3.220.0140.00516.20
7.3.210.0130.00516.20
7.3.200.0120.00616.18
7.3.190.0080.00916.23
7.3.180.0130.00616.20
7.3.170.0000.01516.33
7.3.160.0120.00816.26
7.3.150.0100.00716.22
7.3.140.0090.00916.29
7.3.130.0030.01516.27
7.3.120.0060.00916.27
7.3.110.0220.00016.10
7.3.100.0120.00916.13
7.3.90.0060.00916.53
7.3.80.0120.00316.34
7.3.70.0090.00616.34
7.3.60.0090.00616.52
7.3.50.0130.00316.35
7.3.40.0120.00916.37
7.3.30.0160.00616.49
7.3.20.0060.01416.38
7.3.10.0030.01416.44
7.3.00.0060.00916.36

preferences:
27.31 ms | 403 KiB | 5 Q