3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "<html><body> <body> </body> </body></html>"; $text = preg_replace('/^.*\<body\>/', '', $text); echo $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.3.60.0110.00418.43
8.3.50.0130.00418.17
8.3.40.0120.00318.84
8.3.30.0090.00618.79
8.3.20.0040.00419.02
8.3.10.0000.00720.95
8.3.00.0080.00017.89
8.2.180.0150.00018.30
8.2.170.0070.00722.96
8.2.160.0100.00319.07
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00019.95
8.2.120.0050.00226.35
8.2.110.0070.00420.38
8.2.100.0110.00018.03
8.2.90.0040.00417.75
8.2.80.0080.00319.04
8.2.70.0000.00817.79
8.2.60.0050.00518.22
8.2.50.0060.00318.10
8.2.40.0000.00819.23
8.2.30.0030.00619.52
8.2.20.0020.00518.14
8.2.10.0070.00018.13
8.2.00.0030.00319.40
8.1.280.0180.00425.92
8.1.270.0000.00923.91
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0100.00022.08
8.1.230.0080.00420.91
8.1.220.0000.00717.79
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.36
8.1.180.0080.00018.10
8.1.170.0100.00018.67
8.1.160.0040.00418.85
8.1.150.0050.00218.77
8.1.140.0040.00417.66
8.1.130.0000.00719.10
8.1.120.0000.00717.54
8.1.110.0000.00717.52
8.1.100.0040.00417.57
8.1.90.0000.00817.52
8.1.80.0000.00817.54
8.1.70.0040.00417.56
8.1.60.0060.00617.66
8.1.50.0070.00017.49
8.1.40.0050.00317.66
8.1.30.0040.00417.75
8.1.20.0000.00717.57
8.1.10.0000.00717.66
8.1.00.0050.00317.54
8.0.300.0020.00520.00
8.0.290.0060.00316.88
8.0.280.0030.00318.41
8.0.270.0000.00717.20
8.0.260.0050.00217.38
8.0.250.0000.00617.06
8.0.240.0000.00716.98
8.0.230.0040.00417.08
8.0.220.0030.00316.92
8.0.210.0030.00317.00
8.0.200.0060.00017.07
8.0.190.0080.00017.10
8.0.180.0040.00316.93
8.0.170.0060.00316.95
8.0.160.0000.00916.92
8.0.150.0000.00716.82
8.0.140.0000.00716.94
8.0.130.0030.00313.39
8.0.120.0020.00516.95
8.0.110.0000.00717.04
8.0.100.0000.00716.87
8.0.90.0050.00316.97
8.0.80.0070.00916.96
8.0.70.0050.00217.07
8.0.60.0000.00716.86
8.0.50.0040.00416.87
8.0.30.0130.00517.14
8.0.20.0110.00917.43
8.0.10.0030.00417.03
8.0.00.0100.00716.89
7.4.330.0050.00015.55
7.4.320.0060.00016.74
7.4.300.0000.00716.59
7.4.290.0000.00716.72
7.4.280.0040.00416.75
7.4.270.0030.00616.62
7.4.260.0040.00716.74
7.4.250.0070.00016.51
7.4.240.0070.00016.73
7.4.230.0030.00316.59
7.4.220.0040.00416.74
7.4.210.0080.00816.79
7.4.200.0000.00716.86
7.4.160.0080.00816.62
7.4.140.0150.00517.86
7.4.130.0090.00916.55
7.4.120.0100.01016.67
7.4.110.0100.01316.54
7.4.100.0140.00716.46
7.4.90.0070.01016.70
7.4.80.0140.00319.39
7.4.70.0160.00416.68
7.4.60.0030.01316.77
7.4.50.0030.00916.46
7.4.40.0140.01116.69
7.4.00.0040.01114.88
7.3.330.0040.00413.24
7.3.320.0000.00513.23
7.3.310.0000.00616.30
7.3.300.0000.00716.35
7.3.290.0020.00516.37
7.3.280.0070.01116.40
7.3.260.0070.01216.60
7.3.240.0110.00616.61
7.3.230.0090.01216.49
7.3.210.0160.00616.67
7.3.200.0090.00616.56
7.3.190.0100.00616.20
7.3.180.0120.00316.42
7.3.170.0030.01316.55
7.3.160.0050.01016.46
7.2.330.0130.01016.74
7.2.320.0030.01616.66
7.2.310.0110.01116.75
7.2.300.0060.01316.89
7.2.290.0070.01416.63
7.2.60.4940.00915.05
7.2.50.2700.01115.13
7.2.40.2260.00815.71
7.2.30.3270.01415.63
7.2.20.3360.01315.58
7.2.10.3130.01115.46
7.2.00.3210.00815.52
7.1.200.0100.00315.98
7.1.170.3870.00814.05
7.1.160.3150.01417.02
7.1.150.3360.00916.93
7.1.140.3220.00816.99
7.1.130.2780.00916.89
7.1.120.3230.01117.20
7.1.110.2070.01016.38
7.1.100.3160.01416.38
7.1.90.1890.01316.44
7.1.80.2140.00816.78
7.1.70.1680.01015.42
7.1.60.1680.01733.19
7.1.50.1850.01933.29
7.1.40.1390.01432.69
7.1.30.1420.01432.80
7.1.20.1850.01432.93
7.1.10.1540.01315.09
7.1.00.0570.01814.98

preferences:
57.23 ms | 400 KiB | 5 Q