3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:^PING\b[^(]*\(([^)]*)\)\s([^.]*)\.|\G(?!^))\R(\d+\sbytes).*?icmp_seq=(\d+)\h+ttl=(\d+).*?time=(\d+(?:\.\d+)?\h+ms).*(?:\s+---.*\R(\d+)\spackets\stransmitted.*?(\d+)\sreceived,\h*(\d+%)\spacket\sloss,\h+time\s(\d+ms)\R.*=\s(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\sms)?/'; $str = 'PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data. 64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=0.816 ms 64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=0.883 ms 64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=0.743 ms 64 bytes from 1.1.1.1: icmp_seq=4 ttl=58 time=0.613 ms --- 1.1.1.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3033ms rtt min/avg/max/mdev = 0.613/0.763/0.883/0.105 ms '; preg_match_all($re, $str, $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.5.10.0130.00816.77
8.5.00.0140.00820.09
8.4.150.0010.00214.05
8.4.140.0130.01017.64
8.4.130.0100.00918.68
8.4.120.0100.01024.01
8.4.110.0060.00418.74
8.4.100.0110.01218.70
8.4.90.0120.00920.39
8.4.80.0040.00618.70
8.4.70.0060.00518.97
8.4.60.0120.01018.74
8.4.50.0110.00918.51
8.4.40.0100.01017.82
8.4.30.0170.00420.45
8.4.20.0070.01418.19
8.4.10.0030.00619.86
8.3.280.0120.01018.50
8.3.270.0120.00816.66
8.3.260.0130.00716.72
8.3.250.0080.00218.98
8.3.240.0110.00917.06
8.3.230.0080.01216.68
8.3.220.0100.01018.82
8.3.210.0070.00216.94
8.3.200.0060.00316.91
8.3.190.0150.00616.86
8.3.180.0110.00717.21
8.3.170.0160.00020.59
8.3.160.0130.00718.41
8.3.150.0100.01017.07
8.3.140.0130.00316.81
8.3.130.0090.00018.45
8.3.120.0120.00418.85
8.3.110.0090.00016.88
8.3.100.0030.00724.06
8.3.90.0140.00726.77
8.3.80.0070.00320.55
8.3.70.0180.00416.73
8.3.60.0120.00318.43
8.3.50.0030.01620.24
8.3.40.0120.00318.86
8.3.30.0150.00718.64
8.3.20.0100.00624.18
8.3.10.0090.00024.66
8.3.00.0000.00826.16
8.2.290.0090.00320.36
8.2.280.0120.00818.13
8.2.270.0080.01217.31
8.2.260.0150.00016.55
8.2.250.0090.00018.42
8.2.240.0100.01019.29
8.2.230.0090.00020.94
8.2.220.0040.00737.54
8.2.210.0040.01126.77
8.2.200.0030.00616.63
8.2.190.0150.00016.88
8.2.180.0130.01025.92
8.2.170.0070.00719.09
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00826.16
8.2.110.0060.00322.32
8.2.100.0000.01217.91
8.2.90.0060.00519.88
8.2.80.0030.00518.73
8.2.70.0050.00317.75
8.2.60.0030.00617.91
8.2.50.0040.00418.07
8.2.40.0030.00619.88
8.2.30.0040.00417.89
8.2.20.0050.00320.69
8.2.10.0030.00517.84
8.2.00.0050.00319.19
8.1.330.0110.00822.01
8.1.320.0070.00618.30
8.1.310.0060.01318.29
8.1.300.0060.00618.61
8.1.290.0040.00818.88
8.1.280.0230.00025.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.01223.96
8.1.230.0100.00322.23
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0110.00017.48
8.1.190.0040.00417.48
8.1.180.0050.00518.10
8.1.170.0050.00318.77
8.1.160.0000.00718.88
8.1.150.0040.00418.79
8.1.140.0050.00317.64
8.1.130.0030.00320.34
8.1.120.0030.00517.59
8.1.110.0000.00817.57
8.1.100.0040.00417.60
8.1.90.0040.00417.54
8.1.80.0030.00617.62
8.1.70.0040.00417.61
8.1.60.0030.00617.61
8.1.50.0030.00517.52
8.1.40.0120.00017.58
8.1.30.0100.00317.79
8.1.20.0040.00417.80
8.1.10.0000.00817.71
8.1.00.0170.00617.43
8.0.300.0050.00318.77
8.0.290.0060.00317.00
8.0.280.0000.00718.44
8.0.270.0000.00716.95
8.0.260.0040.00418.44
8.0.250.0030.00317.02
8.0.240.0030.00617.11
8.0.230.0040.00417.11
8.0.220.0070.00017.02
8.0.210.0070.00017.01
8.0.200.0030.00317.07
8.0.190.0080.00016.98
8.0.180.0030.00817.06
8.0.170.0030.00617.10
8.0.160.0040.00416.98
8.0.150.0070.00016.96
8.0.140.0000.00716.87
8.0.130.0060.01216.86
8.0.120.0160.00316.80
8.0.110.0110.00716.95
8.0.100.0120.00816.80
8.0.90.0130.00516.92
8.0.80.0040.00716.98
8.0.70.0110.00816.77
8.0.60.0120.00916.76
8.0.50.0090.00916.87
8.0.30.0090.00916.78
8.0.20.0150.00416.84
8.0.10.0160.00317.09
8.0.00.0040.00816.94
7.4.330.0000.00515.55
7.4.320.0060.00016.63
7.4.300.0070.00016.63
7.4.290.0070.00016.61
7.4.280.0070.00016.79
7.4.270.0000.00716.70
7.4.260.0210.00416.50
7.4.250.0230.00016.60
7.4.240.0140.00316.59
7.4.230.0150.00616.55
7.4.220.0100.00716.61
7.4.210.0110.00516.67
7.4.200.0050.01016.54
7.4.190.0120.00516.66
7.4.180.0200.00016.69
7.4.160.0170.00716.63
7.4.150.0140.00616.68
7.4.140.0130.00516.64
7.4.130.0190.00016.72
7.4.120.0160.00316.67
7.4.110.0190.00016.53
7.4.100.0150.00416.74
7.4.90.0110.00716.63
7.4.80.0120.00316.65
7.4.70.0100.00516.52
7.4.60.0130.00516.64
7.4.50.0200.00016.36
7.4.40.0110.00716.41
7.4.30.0180.00016.56
7.4.20.0160.00316.42
7.4.10.0130.00616.42
7.4.00.0120.00616.39
7.3.330.0130.00616.17
7.3.320.0190.00316.34
7.3.310.0130.00416.33
7.3.300.0160.00316.20
7.3.290.0090.00616.20
7.3.280.0100.00716.33
7.3.270.0150.00316.29
7.3.260.0140.00316.27
7.3.250.0120.00616.04
7.3.240.0060.00616.27
7.3.230.0110.00716.17
7.3.220.0110.00016.20
7.3.210.0040.00816.13
7.3.200.0050.00816.25
7.3.190.0050.01016.04
7.3.180.0140.00316.16
7.3.170.0100.00316.04
7.3.160.0110.00416.04
7.3.150.0090.00316.04
7.3.140.0070.00416.03
7.3.130.0100.00516.00

preferences:
37.22 ms | 403 KiB | 5 Q