3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'Wires: 8 Pairs: 4'; echo preg_replace_callback( '/Wires: (\d+) Pairs: (\d+)/', fn($m) => sprintf( 'Wires: %d Pairs: %d', $m[1] / $m[2], $m[2] ), $input );

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.140.0160.00617.76
8.4.130.0140.00717.87
8.4.120.0120.00822.52
8.4.110.0160.00418.82
8.4.100.0110.01017.83
8.4.90.0130.00818.83
8.4.80.0120.00818.70
8.4.70.0080.00218.14
8.4.60.0090.01318.64
8.4.50.0020.00719.61
8.4.40.0120.00820.48
8.4.30.0080.01118.75
8.4.20.0040.00420.72
8.4.10.0100.00023.95
8.3.270.0120.00816.58
8.3.260.0100.01116.67
8.3.250.0150.00419.06
8.3.240.0110.00816.96
8.3.230.0110.00716.55
8.3.220.0030.00518.79
8.3.210.0130.00518.64
8.3.200.0050.00316.81
8.3.190.0050.00418.86
8.3.180.0040.00416.82
8.3.170.0070.01119.00
8.3.160.0120.00618.82
8.3.150.0080.01118.94
8.3.140.0070.00317.03
8.3.130.0040.00418.48
8.3.120.0090.00018.96
8.3.110.0060.00320.94
8.3.100.0120.00016.58
8.3.90.0110.00420.11
8.3.80.0070.00717.97
8.3.70.0100.00716.50
8.3.60.0110.00418.56
8.3.50.0150.00618.57
8.3.40.0040.01120.07
8.3.30.0130.00318.96
8.3.20.0090.00024.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0060.00320.80
8.2.280.0090.01018.39
8.2.270.0050.00316.71
8.2.260.0090.00916.70
8.2.250.0120.00318.52
8.2.240.0080.00516.57
8.2.230.0030.00722.58
8.2.220.0080.00024.06
8.2.210.0000.00826.77
8.2.200.0030.00716.73
8.2.190.0170.00316.88
8.2.180.0030.01418.75
8.2.170.0030.01219.14
8.2.160.0050.01022.96
8.2.150.0000.00825.66
8.2.140.0060.01224.66
8.2.130.0130.00626.16
8.2.120.0040.00421.31
8.2.110.0090.00021.11
8.2.100.0090.00318.03
8.2.90.0060.00319.14
8.2.80.0040.00419.25
8.2.70.0040.00417.88
8.2.60.0040.00418.00
8.2.50.0060.00319.52
8.2.40.0130.00319.52
8.2.30.0100.00719.52
8.2.20.0160.00019.52
8.2.10.0170.00019.52
8.2.00.0160.00019.52
8.1.330.0110.00822.21
8.1.320.0110.00816.37
8.1.310.0120.00616.38
8.1.300.0060.00316.38
8.1.290.0040.00418.88
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00322.71
8.1.230.0070.00417.70
8.1.220.0040.00417.76
8.1.210.0050.00518.77
8.1.200.0060.00317.47
8.1.190.0030.00717.36
8.1.180.0110.00519.52
8.1.170.0160.00019.52
8.1.160.0080.00819.52
8.1.150.0130.00419.52
8.1.140.0110.00519.52
8.1.130.0060.01019.52
8.1.120.0080.00819.52
8.1.110.0110.00519.52
8.1.100.0120.00619.52
8.1.90.0160.00019.52
8.1.80.0150.00419.52
8.1.70.0080.00819.52
8.1.60.0150.00419.52
8.1.50.0160.00319.52
8.1.40.0160.00319.52
8.1.30.0120.00619.52
8.1.20.0200.00019.52
8.1.10.0160.00319.52
8.1.00.0100.00719.52
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0110.00419.52
8.0.270.0160.00019.52
8.0.260.0130.00319.52
8.0.250.0170.00019.52
8.0.240.0120.00519.52
8.0.230.0120.00619.52
8.0.220.0070.01019.52
8.0.210.0120.00419.52
8.0.200.0120.00519.52
8.0.190.0140.00219.52
8.0.180.0130.00419.52
8.0.170.0090.00619.52
8.0.160.0110.00519.52
8.0.150.0130.00319.52
8.0.140.0100.00619.52
8.0.130.0110.00519.52
8.0.120.0160.00019.52
8.0.110.0080.00819.52
8.0.100.0160.00019.52
8.0.90.0120.00419.52
8.0.80.0130.00419.52
8.0.70.0140.00219.52
8.0.60.0130.00319.52
8.0.50.0130.00419.52
8.0.30.0100.00519.52
8.0.20.0050.01019.52
8.0.10.0090.00619.52

preferences:
30.43 ms | 403 KiB | 5 Q