3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "< > Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, < > when an <b>unknown printer</b> took <> a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries. < >"; $text = preg_replace(array('/<\s*\>/', '/\s+/', '/^\s|\s$/'), array('', ' ', ''), $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.5.00.0160.00619.96
8.4.150.0070.00716.97
8.4.140.0090.01117.69
8.4.130.0120.00917.59
8.4.120.0080.01220.25
8.4.110.0150.00524.07
8.4.100.0090.00317.82
8.4.90.0130.00720.74
8.4.80.0110.00919.00
8.4.70.0110.00919.14
8.4.60.0160.00519.04
8.4.50.0080.00919.90
8.4.40.0120.00919.46
8.4.30.0100.01022.31
8.4.20.0100.01018.67
8.4.10.0130.00317.93
8.3.280.0140.00618.47
8.3.270.0090.01116.78
8.3.260.0130.00616.54
8.3.250.0060.00316.89
8.3.240.0130.00716.89
8.3.230.0070.00216.77
8.3.220.0110.00718.70
8.3.210.0070.00218.27
8.3.200.0060.00516.65
8.3.190.0110.00716.90
8.3.180.0100.00716.79
8.3.170.0040.00420.91
8.3.160.0050.00318.43
8.3.150.0030.00720.70
8.3.140.0090.00616.61
8.3.130.0000.00816.62
8.3.120.0080.00018.81
8.3.110.0030.00620.94
8.3.100.0070.00716.83
8.3.90.0030.00526.77
8.3.80.0060.00318.27
8.3.70.0040.01816.75
8.3.60.0110.00416.50
8.3.50.0180.00618.16
8.3.40.0080.00818.61
8.3.30.0040.01118.83
8.3.20.0040.00420.73
8.3.10.0080.00021.59
8.3.00.0000.00722.34
8.2.290.0090.00716.98
8.2.280.0160.00318.47
8.2.270.0150.00417.06
8.2.260.0040.00420.52
8.2.250.0080.00016.93
8.2.240.0100.01017.16
8.2.230.0090.00022.58
8.2.220.0080.00024.06
8.2.210.0150.00426.77
8.2.200.0060.00318.38
8.2.190.0120.00316.75
8.2.180.0120.00618.54
8.2.170.0120.00322.96
8.2.160.0100.00720.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0090.00620.79
8.2.110.0100.00022.25
8.2.100.0040.00717.97
8.2.90.0040.00420.59
8.2.80.0000.00817.97
8.2.70.0080.00017.93
8.2.60.0080.00018.16
8.2.50.0040.00418.10
8.2.40.0050.00321.05
8.2.30.0000.00719.27
8.2.20.0000.00818.16
8.2.10.0040.00419.25
8.2.00.0000.00819.21
8.1.330.0150.00516.44
8.1.320.0110.00918.02
8.1.310.0150.00416.90
8.1.300.0100.00016.36
8.1.290.0090.00018.88
8.1.280.0150.00325.92
8.1.270.0040.00422.29
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.40
8.1.230.0070.00420.86
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0060.00320.70
8.1.160.0040.00419.11
8.1.150.0050.00218.76
8.1.140.0050.00320.82
8.1.130.0030.00519.98
8.1.120.0000.00817.46
8.1.110.0040.00417.51
8.1.100.0000.00817.51
8.1.90.0040.00417.47
8.1.80.0030.00517.55
8.1.70.0040.00417.50
8.1.60.0040.00417.57
8.1.50.0030.00517.57
8.1.40.0000.00817.50
8.1.30.0030.00517.76
8.1.20.0030.00617.74
8.1.10.0020.00417.53
8.1.00.0000.00817.58
8.0.300.0050.00319.95
8.0.290.0030.00616.75
8.0.280.0040.00418.51
8.0.270.0000.00717.29
8.0.260.0000.00720.14
8.0.250.0000.00717.12
8.0.240.0040.00417.14
8.0.230.0030.00316.99
8.0.220.0000.00716.91
8.0.210.0030.00516.96
8.0.200.0070.00017.06
8.0.190.0000.00717.02
8.0.180.0040.00416.86
8.0.170.0040.00417.03
8.0.160.0040.00417.01
8.0.150.0080.00016.95
8.0.140.0000.00716.89
8.0.130.0030.00313.37
8.0.120.0000.00716.86
8.0.110.0040.00417.09
8.0.100.0040.00416.89
8.0.90.0040.00416.95
8.0.80.0070.01116.96
8.0.70.0000.00817.04
8.0.60.0030.00517.09
8.0.50.0040.00416.99
8.0.30.0060.01017.43
8.0.20.0090.00917.22
8.0.10.0060.00317.14
8.0.00.0090.00917.01
7.4.330.0020.00215.55
7.4.320.0060.00016.67
7.4.300.0030.00316.74
7.4.290.0030.00616.69
7.4.280.0040.00416.74
7.4.270.0060.00316.66
7.4.260.0000.00613.29
7.4.250.0030.00316.59
7.4.240.0050.00316.60
7.4.230.0000.00816.56
7.4.220.0030.00316.70
7.4.210.0070.00816.72
7.4.200.0040.00416.66
7.4.130.0130.00316.54
7.4.120.0100.01116.59
7.4.110.0110.01116.61
7.4.100.0040.01416.66
7.4.90.0130.00616.64
7.4.80.0110.00519.39
7.4.70.0030.01316.65
7.4.60.0100.01416.69
7.4.50.0060.01016.63
7.4.40.0080.00816.69
7.4.00.0090.00315.17
7.3.330.0070.00016.45
7.3.320.0000.00513.29
7.3.310.0070.00016.41
7.3.300.0070.00016.25
7.3.290.0050.00816.34
7.3.280.0070.00716.36
7.3.260.0120.00816.58
7.3.230.0090.00916.57
7.3.210.0160.00016.45
7.3.200.0090.00916.38
7.3.190.0090.01216.39
7.3.180.0090.00616.54
7.3.170.0070.01016.41
7.3.160.0120.00316.36
7.3.120.0070.00914.96
7.3.110.0050.01314.97
7.3.100.0090.00414.91
7.3.90.0050.01014.91
7.3.80.0080.00814.97
7.3.70.0050.01114.85
7.3.60.0050.00914.69
7.3.50.0040.01014.95
7.3.40.0090.00414.93
7.3.30.0030.01114.94
7.3.20.0080.00416.13
7.3.10.0080.01016.11
7.3.00.0080.00616.15
7.2.330.0160.00316.60
7.2.320.0130.01016.67
7.2.310.0060.01016.77
7.2.300.0180.00316.88
7.2.290.0060.01216.95
7.2.240.0050.00915.23
7.2.230.0050.01115.06
7.2.220.0070.00515.04
7.2.210.0090.00515.01
7.2.200.0080.00615.12
7.2.190.0060.00815.09
7.2.180.0090.00415.17
7.2.170.0070.00815.11
7.2.160.0050.00814.86
7.2.150.0070.01116.37
7.2.140.0050.00916.29
7.2.130.0060.00916.44
7.2.120.0040.01016.34
7.2.110.0080.00616.25
7.2.100.0090.00716.25
7.2.90.0050.00816.38
7.2.80.0040.01216.31
7.2.70.0090.00316.35
7.2.60.0070.00616.44
7.2.50.0070.00816.29
7.2.40.0050.00916.28
7.2.30.0090.00716.38
7.2.20.0060.01116.38
7.2.10.0070.00716.48
7.2.00.0080.00716.44
7.1.330.0050.01015.81
7.1.320.0010.01015.34
7.1.310.0070.00615.34
7.1.300.0080.00615.22
7.1.290.0080.00615.31
7.1.280.0080.00615.16
7.1.270.0090.00615.34
7.1.260.0040.00815.31
7.1.250.0060.00915.35

preferences:
157.8 ms | 403 KiB | 5 Q