3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TAG DESCRIPTION QUANTITY UNIT PRICE TAX RCV DEPREC. ACV 1. Remove 3 tab - 25 yr. - composition shingle roofing - 21.25 SQ 52.83 0.00 1,122.64 (0.00) 1,122.64 incl. felt 2. 3 tab - 25 yr. - composition shingle roofing - incl. felt 24.67 SQ 186.84 199.43 4,808.77 (0.00) 4,808.77 3. R&R Drip edge 196.95 LF 2.33 16.27 475.16 (0.00) 475.16 4. Asphalt starter - universal starter course 100.58 LF 1.31 3.67 135.43 (0.00) 135.43 5. Ice & water barrier 118.94 SF 1.15 4.34 141.12 (0.00) 141.12 6. R&R Roof vent - turtle type - Metal 5.00 EA 51.09 6.55 262.00 (0.00) 262.00 7. R&R Flashing - pipe jack 3.00 EA 38.63 2.95 118.84 (0.00) 118.84 8. R&R Rain cap - 6" 2.00 EA 36.80 3.40 77.00 (0.00) 77.00 9. R&R Ridge cap - composition shingles 77.58 LF 4.67 7.04 369.33 (0.00) 369.33 10. Digital satellite system - Detach & reset 1.00 EA 31.40 0.00 31.40 (0.00) 31.40 11. Digital satellite system - alignment and calibration 1.00 EA 94.19 0.00 94.19 (0.00) 94.19 only 12. R&R Flashing - pipe jack - split boot 1.00 EA 76.00 3.76 79.76 (0.00) 79.76 13. R&R Gutter / downspout - aluminum - up to 5" 152.58 LF 7.13 49.56 1,137.45 (0.00) 1,137.45 TAG; var_dump(explode(PHP_EOL, preg_replace('/\s+(\d+\.)\s+/', PHP_EOL . '$1 ', $text)));

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.0140.00817.53
8.4.130.0110.01018.95
8.4.120.0020.00824.22
8.4.110.0050.00418.53
8.4.100.0120.00817.95
8.4.90.0020.00720.45
8.4.80.0130.00624.29
8.4.70.0150.00618.80
8.4.60.0140.00620.36
8.4.50.0130.00720.49
8.4.40.0120.00917.68
8.4.30.0140.00320.37
8.4.20.0100.01018.10
8.4.10.0100.01019.67
8.3.270.0040.00616.30
8.3.260.0060.00716.66
8.3.250.0110.00818.99
8.3.240.0130.00717.29
8.3.230.0120.00816.91
8.3.220.0090.00919.04
8.3.210.0100.01018.38
8.3.200.0060.00316.79
8.3.190.0050.00616.95
8.3.180.0070.01218.71
8.3.170.0120.00316.96
8.3.160.0070.01016.62
8.3.150.0130.00317.26
8.3.140.0150.00016.55
8.3.130.0090.00018.52
8.3.120.0080.00020.62
8.3.110.0080.00018.33
8.3.100.0060.00318.66
8.3.90.0090.00926.77
8.3.80.0070.00318.43
8.3.70.0100.01016.88
8.3.60.0160.00616.63
8.3.50.0060.01519.86
8.3.40.0000.01618.79
8.3.30.0080.00818.66
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0050.00326.16
8.2.290.0070.00217.00
8.2.280.0110.00818.30
8.2.270.0130.00616.72
8.2.260.0060.00917.09
8.2.250.0060.00916.64
8.2.240.0120.00418.94
8.2.230.0040.00420.94
8.2.220.0070.00324.06
8.2.210.0120.00626.77
8.2.200.0050.00516.63
8.2.190.0080.00816.58
8.2.180.0120.00325.92
8.2.170.0040.01118.83
8.2.160.0110.00422.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0030.00720.29
8.2.100.0110.00017.97
8.2.90.0050.00318.22
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0050.00317.61
8.2.50.0030.00618.05
8.2.40.0000.00817.75
8.2.30.0040.00417.82
8.2.20.0000.00719.54
8.2.10.0030.00617.75
8.2.00.0050.00319.23
8.1.330.0040.00621.87
8.1.320.0110.01016.47
8.1.310.0040.00416.74
8.1.300.0040.00418.61
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0040.00423.81
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0080.00322.05
8.1.230.0070.00420.96
8.1.220.0030.00617.74
8.1.210.0030.00518.89
8.1.200.0050.00317.40
8.1.190.0080.00017.36
8.1.180.0000.00818.10
8.1.170.0000.00917.62
8.1.160.0040.00419.07
8.1.150.0000.00818.69
8.1.140.0050.00317.44
8.1.130.0000.00718.94
8.1.120.0070.00017.63
8.1.110.0000.00717.52
8.1.100.0030.00517.61
8.1.90.0070.00017.60
8.1.80.0030.00617.63
8.1.70.0070.00017.46
8.1.60.0060.00317.53
8.1.50.0080.00017.61
8.1.40.0030.00617.64
8.1.30.0090.00017.83
8.1.20.0040.00417.77
8.1.10.0040.00417.55
8.1.00.0040.00417.45
8.0.300.0020.00520.20
8.0.290.0000.00816.88
8.0.280.0000.00718.62
8.0.270.0030.00516.98
8.0.260.0060.00018.43
8.0.250.0000.00717.14
8.0.240.0030.00317.08
8.0.230.0030.00317.04
8.0.220.0040.00416.96
8.0.210.0040.00417.09
8.0.200.0030.00317.14
8.0.190.0040.00417.13
8.0.180.0000.00717.14
8.0.170.0030.00617.09
8.0.160.0040.00417.13
8.0.150.0040.00416.92
8.0.140.0000.00816.92
8.0.130.0000.01417.09
8.0.120.0090.01316.91
8.0.110.0140.00616.96
8.0.100.0180.00417.07
8.0.90.0140.00716.92
8.0.80.0150.00417.00
8.0.70.0130.00716.97
8.0.60.0210.00016.99
8.0.50.0130.01317.04
8.0.30.0130.00617.02
8.0.20.0180.00317.00
8.0.10.0160.00517.03
8.0.00.0110.00017.15
7.4.330.0050.00015.55
7.4.320.0000.00716.69
7.4.300.0000.00716.75
7.4.290.0040.00416.77
7.4.280.0100.00016.59
7.4.270.0040.00416.63
7.4.260.0220.00016.77
7.4.250.0200.00316.59
7.4.240.0210.00316.65
7.4.230.0180.00416.75
7.4.220.0120.00816.76
7.4.210.0170.00316.78
7.4.200.0060.01316.57
7.4.190.0180.00016.70
7.4.180.0130.00616.74
7.4.160.0140.00516.63
7.4.150.0110.00916.73
7.4.140.0140.00516.68
7.4.130.0110.00816.67
7.4.120.0090.00916.58
7.4.110.0170.00316.60
7.4.100.0130.00516.75
7.4.90.0120.00816.63
7.4.80.0180.00016.57
7.4.70.0150.00416.66
7.4.60.0170.00316.65
7.4.50.0100.01016.46
7.4.40.0140.00616.53
7.4.30.0160.00316.61
7.4.20.0150.00616.59
7.4.10.0120.00916.44
7.4.00.0200.00016.47
7.3.330.0000.01016.29
7.3.320.0150.00516.29
7.3.310.0190.00416.40
7.3.300.0200.00016.43
7.3.290.0090.00916.42
7.3.280.0200.00016.23
7.3.270.0160.00316.21
7.3.260.0170.00016.35
7.3.250.0160.00016.29
7.3.240.0080.00816.39
7.3.230.0070.00716.38
7.3.220.0050.00516.34
7.3.210.0150.00416.39
7.3.200.0140.00716.13
7.3.190.0040.01416.13
7.3.180.0120.00816.12
7.3.170.0040.01216.09
7.3.160.0100.01016.12
7.3.150.0190.00316.17
7.3.140.0180.00516.11
7.3.130.0190.00516.18
7.3.120.0150.00616.16
7.3.110.0130.00316.14
7.3.100.0090.00616.11
7.3.90.0060.01016.39
7.3.80.0080.00916.20
7.3.70.0190.00416.29
7.3.60.0140.00016.45
7.3.50.0140.00016.31
7.3.40.0070.00716.45
7.3.30.0120.00316.45
7.3.20.0090.01018.22
7.3.10.0150.00317.99
7.3.00.0100.00318.20

preferences:
31.55 ms | 403 KiB | 5 Q