3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'dit is een string'; $string = preg_replace('\s', '_', $string); print_r($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.60.0130.00716.50
8.3.50.0060.00916.50
8.3.40.0140.00718.66
8.3.30.0070.00718.69
8.3.20.0040.00420.21
8.3.10.0040.00423.65
8.3.00.0040.00417.66
8.2.180.0110.00316.50
8.2.170.0140.00022.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.01
8.2.120.0080.00026.35
8.2.110.0110.00020.99
8.2.100.0110.00018.22
8.2.90.0050.00319.09
8.2.80.0000.00917.97
8.2.70.0030.00617.38
8.2.60.0030.00617.78
8.2.50.0040.00418.10
8.2.40.0000.00720.55
8.2.30.0000.00920.84
8.2.20.0070.00317.91
8.2.10.0000.00818.05
8.2.00.0000.00718.11
8.1.280.0040.01425.92
8.1.270.0040.00423.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.80
8.1.230.0070.00819.22
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0080.00018.53
8.1.160.0000.00718.97
8.1.150.0060.00320.61
8.1.140.0040.00419.45
8.1.130.0000.00718.86
8.1.120.0040.00417.29
8.1.110.0060.00317.30
8.1.100.0030.00717.43
8.1.90.0060.00317.37
8.1.80.0040.00417.37
8.1.70.0000.00817.40
8.1.60.0000.00817.44
8.1.50.0030.00617.35
8.1.40.0000.00717.32
8.1.30.0070.00017.47
8.1.20.0030.00517.46
8.1.10.0040.00417.33
8.1.00.0050.00217.34
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0070.00018.28
8.0.270.0000.01117.07
8.0.260.0030.00316.82
8.0.250.0060.00016.94
8.0.240.0030.00516.93
8.0.230.0040.00416.96
8.0.220.0040.00416.78
8.0.210.0000.00716.81
8.0.200.0030.00316.81
8.0.190.0040.00416.99
8.0.180.0020.00516.92
8.0.170.0030.00316.90
8.0.160.0040.00416.88
8.0.150.0000.00716.88
8.0.140.0040.00416.82
8.0.130.0000.00613.30
8.0.120.0000.00716.85
8.0.110.0000.00716.75
8.0.100.0000.00716.93
8.0.90.0000.00816.77
8.0.80.0040.01116.84
8.0.70.0030.00616.88
8.0.60.0040.00416.70
8.0.50.0050.00216.88
8.0.30.0070.01017.14
8.0.20.0100.00917.40
8.0.10.0050.00217.03
8.0.00.0060.01116.59
7.4.330.0060.00015.55
7.4.320.0000.00616.42
7.4.300.0000.00716.55
7.4.290.0080.00316.44
7.4.280.0000.00716.43
7.4.270.0030.00316.44
7.4.260.0000.01016.51
7.4.250.0000.00716.47
7.4.240.0070.00016.45
7.4.230.0030.00316.46
7.4.220.0140.01116.59
7.4.210.0070.00716.44
7.4.200.0000.00816.59
7.4.160.0080.01216.40
7.4.150.0070.01117.40
7.4.140.0080.01117.86
7.4.130.0100.01016.38
7.4.120.0090.00816.51
7.4.110.0100.00716.42
7.4.100.0030.01416.32
7.4.90.0100.00716.32
7.4.80.0070.01319.39
7.4.70.0120.00316.52
7.4.60.0130.00316.52
7.4.50.0060.00616.26
7.4.40.0060.01016.50
7.4.30.0090.00816.40
7.4.00.0040.01114.78
7.3.330.0000.00613.17
7.3.320.0050.00013.03
7.3.310.0070.00016.20
7.3.300.0000.00716.04
7.3.290.0070.00816.28
7.3.280.0100.00716.17
7.3.270.0070.01117.40
7.3.260.0130.00316.26
7.3.250.0100.01416.33
7.3.240.0120.00516.16
7.3.230.0070.01016.23
7.3.210.0120.00416.23
7.3.200.0110.00916.18
7.3.190.0140.00716.27
7.3.180.0070.01016.34
7.3.170.0040.01216.30
7.3.160.0120.00616.14
7.2.330.0190.00716.39
7.2.320.0110.00416.51
7.2.310.0140.00316.32
7.2.300.0130.00616.44
7.2.290.0030.01216.25
7.2.60.0040.01116.87
7.2.00.0030.01119.43
7.1.200.0070.00015.58
7.1.100.0180.00318.34
7.1.70.0170.00615.21
7.1.60.0250.01433.19
7.1.50.0150.01533.07
7.1.40.0180.01734.45
7.1.30.0300.00934.43
7.1.20.0150.01634.24
7.1.10.0030.01416.45
7.1.00.0030.01316.49
7.0.200.0100.00914.82
7.0.190.0100.00714.69
7.0.180.0080.00916.05
7.0.170.0030.01016.18
7.0.160.0070.00716.09
7.0.150.0070.01016.07
7.0.140.0060.01316.28
7.0.130.0030.01416.53
7.0.120.0060.01416.35
7.0.110.0090.00616.39
7.0.100.0080.01116.39
7.0.90.0030.01016.29
7.0.80.0150.00016.28
7.0.70.0040.01016.46
7.0.60.0030.01016.02
7.0.50.0000.01216.41
7.0.40.0070.00716.36
7.0.30.0000.01316.68
7.0.20.0030.00916.28
7.0.10.0090.00816.32
7.0.00.0030.01316.27

preferences:
54.8 ms | 401 KiB | 5 Q