3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = null; var_dump(preg_replace('/\s+/', '', $string));

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.70.0070.00718.43
8.3.60.0090.00616.71
8.3.50.0110.00816.60
8.3.40.0140.00419.02
8.3.30.0080.00818.78
8.3.20.0040.00420.34
8.3.10.0050.00323.64
8.3.00.0050.00317.97
8.2.180.0040.01118.79
8.2.170.0100.00322.96
8.2.160.0070.00720.35
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0030.00520.51
8.2.120.0070.00026.35
8.2.110.0070.00319.39
8.2.100.0080.00418.00
8.2.90.0000.00819.23
8.2.80.0000.00917.97
8.2.70.0030.00617.75
8.2.60.0030.00617.93
8.2.50.0050.00518.10
8.2.40.0000.00822.35
8.2.30.0040.00420.87
8.2.20.0000.00717.88
8.2.10.0040.00418.07
8.2.00.0040.00417.88
8.1.280.0170.00325.92
8.1.270.0000.00722.22
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0030.00622.42
8.1.230.0120.00317.58
8.1.220.0030.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0050.00518.68
8.1.160.0000.00718.96
8.1.150.0040.00420.65
8.1.140.0040.00419.43
8.1.130.0030.00618.88
8.1.120.0000.00717.52
8.1.110.0030.00517.53
8.1.100.0040.00417.43
8.1.90.0000.00717.51
8.1.80.0070.00017.44
8.1.70.0000.00717.54
8.1.60.0040.00417.68
8.1.50.0070.00017.49
8.1.40.0000.00817.63
8.1.30.0130.00017.63
8.1.20.0040.00417.73
8.1.10.0000.00817.48
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00518.43
8.0.270.0030.00517.08
8.0.260.0000.00816.89
8.0.250.0030.00517.05
8.0.240.0000.00716.99
8.0.230.0030.00616.90
8.0.220.0000.00716.96
8.0.210.0030.00316.96
8.0.200.0000.00816.96
8.0.190.0000.00816.91
8.0.180.0000.00717.02
8.0.170.0000.00716.98
8.0.160.0000.00716.90
8.0.150.0000.00716.95
8.0.140.0000.00817.00
8.0.130.0050.00013.48
8.0.120.0030.00616.89
8.0.110.0000.00716.76
8.0.100.0050.00216.91
8.0.90.0040.00417.00
8.0.80.0100.00617.03
8.0.70.0030.00516.99
8.0.60.0030.00517.03
8.0.50.0080.00016.86
8.0.30.0120.00817.22
8.0.20.0110.00817.40
8.0.10.0080.00016.96
8.0.00.0150.00316.64
7.4.330.0020.00215.55
7.4.320.0050.00216.73
7.4.300.0060.00016.73
7.4.290.0050.00316.72
7.4.280.0060.00316.68
7.4.270.0000.00716.63
7.4.260.0030.00313.33
7.4.250.0070.00016.75
7.4.240.0070.00016.79
7.4.230.0070.00016.80
7.4.220.0030.01416.59
7.4.210.0110.00916.76
7.4.200.0070.00016.71
7.4.160.0110.00716.51
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0150.00916.58
7.4.120.0150.00516.66
7.3.330.0060.00013.18
7.3.320.0000.00613.14
7.3.310.0040.00416.37
7.3.300.0030.00316.27
7.3.290.0030.00316.29
7.3.280.0080.00716.28
7.3.270.0030.01417.40
7.3.260.0080.00816.42
7.3.250.0090.01116.51
7.3.240.0110.00716.60
7.1.30.0290.00734.65

preferences:
50.51 ms | 401 KiB | 5 Q