3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const NBSP = "\\xa0"; public function __construct($value) { var_dump(preg_replace('/'.self::NBSP.'/u', '*', $value)); } } new Foo("foo bar"); new Foo("foo\xc2\xa0bar");

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.30.0060.01220.11
8.5.20.0130.00520.19
8.5.10.0110.00618.82
8.5.00.0110.01119.93
8.4.180.0170.00719.80
8.4.170.0160.00620.54
8.4.160.0120.01020.59
8.4.150.0030.00014.05
8.4.140.0120.00917.36
8.4.130.0140.00618.90
8.4.120.0150.00518.51
8.4.110.0130.00819.09
8.4.100.0130.00717.67
8.4.90.0110.00920.64
8.4.80.0120.00718.85
8.4.70.0130.00717.81
8.4.60.0100.00720.68
8.4.50.0120.00819.13
8.4.40.0100.01017.66
8.4.30.0060.00320.26
8.4.20.0170.00717.68
8.4.10.0060.00317.77
8.3.300.0110.00919.02
8.3.290.0160.00620.85
8.3.280.0160.00518.54
8.3.270.0090.01216.63
8.3.260.0050.00516.75
8.3.250.0110.00916.61
8.3.240.0080.01216.87
8.3.230.0110.00716.85
8.3.220.0060.00318.94
8.3.210.0100.00916.83
8.3.200.0040.00516.75
8.3.190.0100.00816.83
8.3.180.0070.01218.73
8.3.170.0150.00316.74
8.3.160.0040.01417.22
8.3.150.0080.01117.13
8.3.140.0000.01516.59
8.3.130.0000.01118.71
8.3.120.0040.00420.84
8.3.110.0080.00820.94
8.3.100.0060.00918.80
8.3.90.0130.00626.77
8.3.80.0060.00316.75
8.3.70.0110.01116.63
8.3.60.0070.01118.68
8.3.50.0150.00620.10
8.3.40.0090.00618.79
8.3.30.0060.00918.79
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.300.0130.00920.29
8.2.290.0030.00717.28
8.2.280.0100.00918.65
8.2.270.0110.00717.33
8.2.260.0070.01118.37
8.2.250.0060.00616.83
8.2.240.0040.00418.86
8.2.230.0000.00822.58
8.2.220.0080.00824.06
8.2.210.0080.00026.77
8.2.200.0060.00316.75
8.2.190.0140.00717.00
8.2.180.0110.00825.92
8.2.170.0040.01118.86
8.2.160.0110.00422.96
8.2.150.0150.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00917.91
8.2.110.0060.00322.32
8.2.100.0110.00017.91
8.2.90.0030.00517.63
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00417.48
8.2.50.0050.00317.98
8.2.40.0030.00617.85
8.2.30.0000.00718.00
8.2.20.0000.00720.39
8.2.10.0000.00717.69
8.2.00.0070.00019.06
8.1.340.0140.01021.75
8.1.330.0110.00816.45
8.1.320.0120.00316.52
8.1.310.0060.01216.67
8.1.300.0120.00920.14
8.1.290.0030.00630.84
8.1.280.0100.00725.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0000.00919.44
8.1.230.0040.00819.06
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0040.00417.10
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0050.00317.62
8.1.160.0000.00718.79
8.1.150.0050.00318.65
8.1.140.0000.00717.47
8.1.130.0000.00720.27
8.1.120.0030.00517.54
8.1.110.0050.00317.39
8.1.100.0030.00617.46
8.1.90.0000.00817.48
8.1.80.0030.00617.49
8.1.70.0070.00017.30
8.1.60.0030.00617.71
8.1.50.0000.00817.54
8.1.40.0040.00417.59
8.1.30.0080.00017.78
8.1.20.0040.00417.55
8.1.10.0030.00617.49
8.1.00.0060.00317.43
8.0.300.0060.00318.77
8.0.290.0000.00816.88
8.0.280.0070.00020.19
8.0.270.0040.00416.96
8.0.260.0030.00318.43
8.0.250.0050.00217.07
8.0.240.0050.00317.05
8.0.230.0040.00416.94
8.0.220.0070.00016.91
8.0.210.0000.00817.00
8.0.200.0040.00416.92
8.0.190.0070.00017.00
8.0.180.0040.00416.88
8.0.170.0030.00617.02
8.0.160.0080.00016.91
8.0.150.0000.00816.87
8.0.140.0040.00416.77
8.0.130.0040.00416.95
8.0.120.0040.00416.87
8.0.110.0040.00416.93
8.0.100.0030.00516.95
8.0.90.0040.00416.88
8.0.80.0000.00716.77
8.0.70.0000.00816.93
8.0.60.0070.00016.88
8.0.50.0000.00716.78
8.0.30.0000.00716.93
8.0.20.0000.00716.95
8.0.10.0000.00717.01
7.4.330.0030.00315.55
7.4.320.0030.00316.44
7.4.300.0070.00016.56
7.4.290.0030.00316.64
7.4.280.0000.00816.63
7.4.270.0030.00316.62
7.4.260.0070.00016.70
7.4.250.0030.00316.64
7.4.240.0030.00316.59
7.4.230.0070.00016.71
7.4.220.0030.00316.80
7.4.210.0030.00316.53
7.4.200.0000.00716.64
7.4.190.0080.00016.77
7.4.180.0040.00416.76
7.4.160.0030.00316.79
7.4.150.0050.00316.74
7.4.140.0000.00816.72
7.4.130.0070.00016.63
7.4.120.0000.00716.73
7.4.110.0040.00416.66
7.4.100.0030.00316.73
7.4.90.0070.00016.51
7.4.80.0080.00016.61
7.4.70.0040.00416.73
7.4.60.0070.00016.54
7.4.50.0000.00716.49
7.4.40.0030.00316.40
7.4.30.0030.00316.55
7.4.20.0030.00316.33
7.4.10.0030.00316.57
7.4.00.0070.00016.59

preferences:
42.01 ms | 403 KiB | 5 Q