3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Please ask your questions after the session is finished."; preg_match_all('/\h+/', $str,$matches, PREG_OFFSET_CAPTURE); $str = substr_replace($str, "\n", $matches[0][2][1], strlen($matches[0][2][0])); echo $str;

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.120.0120.00822.40
8.4.110.0150.00518.80
8.4.100.0040.00518.08
8.4.90.0080.01220.68
8.4.80.0130.00620.89
8.4.70.0110.00818.92
8.4.60.0120.01220.52
8.4.50.0120.00718.69
8.4.40.0100.01017.90
8.4.30.0060.00317.84
8.4.20.0150.00619.64
8.4.10.0060.00319.65
8.3.250.0080.00917.03
8.3.240.0150.00416.75
8.3.230.0120.00716.57
8.3.220.0090.00918.62
8.3.210.0130.00616.79
8.3.200.0080.00116.61
8.3.190.0090.00917.04
8.3.180.0090.00918.68
8.3.170.0100.01017.12
8.3.160.0060.01218.20
8.3.150.0090.00917.14
8.3.140.0160.00316.68
8.3.130.0040.00418.17
8.3.120.0080.00018.99
8.3.110.0120.00620.94
8.3.100.0030.00724.06
8.3.90.0070.00326.77
8.3.80.0090.00016.75
8.3.70.0090.00618.30
8.3.60.0030.01318.43
8.3.50.0040.00918.29
8.3.40.0140.00418.84
8.3.30.0070.00718.79
8.3.20.0070.00419.02
8.3.10.0080.00023.67
8.3.00.0040.00423.48
8.2.290.0110.00817.22
8.2.280.0150.00518.69
8.2.270.0110.00716.80
8.2.260.0110.00718.73
8.2.250.0030.00518.50
8.2.240.0090.00016.85
8.2.230.0060.00322.58
8.2.220.0090.00037.54
8.2.210.0100.00326.77
8.2.200.0090.00016.63
8.2.190.0090.00616.75
8.2.180.0130.00916.63
8.2.170.0070.00722.96
8.2.160.0060.00922.08
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00022.30
8.2.120.0040.00426.35
8.2.110.0090.00020.34
8.2.100.0110.00018.15
8.2.90.0040.00419.30
8.2.80.0090.00017.97
8.2.70.0040.00417.75
8.2.60.0000.00718.05
8.2.50.0030.00518.07
8.2.40.0030.00518.16
8.2.30.0070.00018.22
8.2.20.0040.00718.14
8.2.10.0020.00518.13
8.2.00.0050.00219.52
8.1.330.0120.00816.41
8.1.320.0080.01216.18
8.1.310.0140.00418.57
8.1.300.0090.00620.40
8.1.290.0090.00018.88
8.1.280.0140.00625.92
8.1.270.0040.00422.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0140.00723.88
8.1.230.0070.00417.89
8.1.220.0050.00317.77
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0040.00418.78
8.1.150.0030.00518.76
8.1.140.0030.00517.57
8.1.130.0000.00718.94
8.1.120.0040.00417.52
8.1.110.0000.01017.50
8.1.100.0030.00317.52
8.1.90.0000.00717.57
8.1.80.0070.00017.43
8.1.70.0000.00917.54
8.1.60.0050.00317.70
8.1.50.0050.00317.63
8.1.40.0000.00717.59
8.1.30.0040.00417.63
8.1.20.0040.00417.77
8.1.10.0080.00017.64
8.1.00.0080.00017.55
8.0.300.0000.00718.77
8.0.290.0050.00516.75
8.0.280.0000.00718.37
8.0.270.0040.00417.18
8.0.260.0030.00317.34
8.0.250.0030.00317.11
8.0.240.0000.00617.12
8.0.230.0050.00216.91
8.0.220.0000.00716.97
8.0.210.0040.00416.95
8.0.200.0070.00016.92
8.0.190.0000.00817.07
8.0.180.0040.00416.98
8.0.170.0040.00817.00
8.0.160.0040.00416.91
8.0.150.0000.00716.82
8.0.140.0040.00416.90
8.0.130.0030.00313.33
8.0.120.0000.00816.84
8.0.110.0050.00216.84
8.0.100.0060.00316.87
8.0.90.0080.00017.01
8.0.80.0100.00816.92
8.0.70.0000.00816.86
8.0.60.0070.00017.04
8.0.50.0070.00016.87
8.0.30.0100.00817.17
8.0.20.0140.00517.40
8.0.10.0040.00416.93
8.0.00.0150.00416.80
7.4.330.0000.00515.55
7.4.320.0030.00316.66
7.4.300.0040.00416.64
7.4.290.0040.00416.49
7.4.280.0040.00416.74
7.4.270.0040.00416.58
7.4.260.0000.00716.54
7.4.250.0040.00416.57
7.4.240.0000.00716.74
7.4.230.0070.00016.75
7.4.220.0030.00316.50
7.4.210.0110.00316.71
7.4.200.0030.00316.64
7.4.160.0100.00716.70
7.4.140.0090.01017.86
7.4.130.0130.01016.95
7.4.120.0110.00916.68
7.4.110.0180.00416.67
7.4.100.0160.00416.64
7.4.90.0150.00316.77
7.4.80.0100.00719.39
7.4.70.0060.01516.63
7.4.60.0100.00716.55
7.4.50.0110.00816.63
7.4.40.0090.00816.76
7.4.00.0090.00615.12
7.3.330.0000.00613.21
7.3.320.0030.00313.29
7.3.310.0070.00016.26
7.3.300.0000.00716.28
7.3.290.0030.00516.48
7.3.280.0070.01216.44
7.3.260.0070.01016.71
7.3.240.0090.00816.52
7.3.230.0150.00316.63
7.3.210.0140.00316.84
7.3.200.0080.00816.94
7.3.190.0060.00916.32
7.3.180.0020.01416.59
7.3.170.0090.01216.63
7.3.160.0070.01316.60
7.2.330.0090.00916.85
7.2.320.0110.00716.79
7.2.310.0070.01116.92
7.2.300.0090.00916.66
7.2.290.0180.00616.79
7.2.80.0100.00316.82
7.2.70.1220.01014.95
7.2.60.1140.01015.05
7.2.50.1070.00715.13
7.2.40.1250.01315.27
7.2.30.1430.01614.99
7.2.20.1520.01015.06
7.2.10.1860.01715.01
7.2.00.1390.00314.80
7.1.200.0090.00616.13
7.1.170.1000.00313.96
7.1.160.1220.01013.90
7.1.150.1290.00714.24
7.1.140.1550.00014.04
7.1.130.1170.00714.07
7.1.120.1140.01613.82
7.1.110.1880.01013.86
7.1.100.0970.00314.20
7.1.90.2040.01313.84
7.1.80.1510.01013.96
7.1.70.1430.01013.73
7.1.60.1290.00631.83
7.1.50.1610.01332.04
7.1.40.1380.01331.92
7.1.30.1780.01631.86
7.1.20.2120.01331.92
7.1.10.2570.00614.26
7.1.00.1120.00714.21

preferences:
29.81 ms | 403 KiB | 5 Q