3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'foobar, 2&nbsp;foo 3&nbsp;bar'; $string = preg_replace("/\s|&nbsp;/",' ', $string); $output = ucwords($string); print_r($output);

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.0090.00918.30
8.3.60.0120.00618.55
8.3.50.0070.00718.34
8.3.40.0070.01118.78
8.3.30.0110.00418.71
8.3.20.0050.00318.91
8.3.10.0040.00421.91
8.3.00.0000.00723.71
8.2.190.0070.00716.88
8.2.180.0110.00716.50
8.2.170.0070.01022.96
8.2.160.0110.00319.04
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00019.60
8.2.120.0040.00426.35
8.2.110.0060.00322.42
8.2.100.0080.00417.75
8.2.90.0050.00220.59
8.2.80.0060.00317.97
8.2.70.0040.00417.93
8.2.60.0080.00018.00
8.2.50.0000.00718.10
8.2.40.0080.00021.21
8.2.30.0040.00419.13
8.2.20.0050.00317.97
8.2.10.0070.00019.41
8.2.00.0000.00819.31
8.1.280.0130.00325.92
8.1.270.0060.00323.99
8.1.260.0050.00226.35
8.1.250.0000.00828.09
8.1.240.0040.00422.52
8.1.230.0000.01120.85
8.1.220.0080.00017.74
8.1.210.0030.00618.90
8.1.200.0040.00417.35
8.1.190.0010.00817.23
8.1.180.0030.00518.10
8.1.170.0030.00618.72
8.1.160.0050.00218.75
8.1.150.0040.00418.83
8.1.140.0070.00019.53
8.1.130.0000.00817.56
8.1.120.0050.00317.54
8.1.110.0050.00317.52
8.1.100.0030.00617.57
8.1.90.0040.00417.52
8.1.80.0040.00417.52
8.1.70.0070.00417.54
8.1.60.0030.00517.69
8.1.50.0080.00017.58
8.1.40.0040.00417.59
8.1.30.0040.00417.55
8.1.20.0000.00717.69
8.1.10.0040.00417.57
8.1.00.0030.00617.56
8.0.300.0060.00319.93
8.0.290.0000.00816.88
8.0.280.0030.00318.39
8.0.270.0030.00316.95
8.0.260.0030.00316.88
8.0.250.0030.00316.92
8.0.240.0000.00916.92
8.0.230.0020.00516.91
8.0.220.0000.00816.97
8.0.210.0000.00716.95
8.0.200.0000.00717.04
8.0.190.0050.00217.04
8.0.180.0000.00716.82
8.0.170.0080.00016.95
8.0.160.0000.00816.98
8.0.150.0050.00216.81
8.0.140.0000.00716.83
8.0.130.0060.00013.40
8.0.120.0030.00616.90
8.0.110.0000.00816.88
8.0.100.0000.00716.75
8.0.90.0030.00517.03
8.0.80.0080.00816.92
8.0.70.0040.00416.77
8.0.60.0070.00017.01
8.0.50.0040.00416.78
8.0.30.0080.01017.18
8.0.20.0090.00917.40
8.0.10.0070.00016.99
8.0.00.0120.00616.87
7.4.330.0000.00515.55
7.4.320.0060.00016.69
7.4.300.0030.00316.64
7.4.290.0000.00816.50
7.4.280.0000.00716.63
7.4.270.0040.00716.66
7.4.260.0040.00416.67
7.4.250.0030.00316.56
7.4.240.0070.00016.50
7.4.230.0000.00816.73
7.4.220.0040.00416.71
7.4.210.0090.00916.76
7.4.200.0040.00416.71
7.4.160.0080.00816.60
7.4.140.0100.00917.86
7.4.130.0090.00916.50
7.4.120.0080.01116.61
7.4.110.0170.00016.65
7.4.100.0030.01716.55
7.4.90.0090.00916.65
7.4.80.0110.01419.39
7.4.70.0090.01516.56
7.4.60.0090.00616.79
7.4.50.0070.00716.45
7.4.40.0100.01016.57
7.4.00.0070.01215.07
7.3.330.0000.00513.01
7.3.320.0030.00313.11
7.3.310.0040.00416.13
7.3.300.0070.00016.08
7.3.290.0030.00316.26
7.3.280.0100.01016.31
7.3.260.0100.00816.37
7.3.240.0110.01116.41
7.3.230.0070.01116.40
7.3.210.0100.00716.41
7.3.200.0070.01316.66
7.3.190.0160.00016.56
7.3.180.0070.01016.68
7.3.170.0160.00616.40
7.3.160.0150.00616.57
7.3.120.0110.00715.15
7.3.110.0040.01514.63
7.3.100.0030.01014.71
7.3.90.0040.01115.05
7.3.80.0040.00714.73
7.3.70.0090.00314.51
7.3.60.0030.00914.53
7.3.50.0160.00014.95
7.3.40.0000.01014.88
7.3.30.0060.00614.90
7.3.20.0120.00316.88
7.3.10.0030.01016.88
7.3.00.0110.00416.45
7.2.330.0140.00316.61
7.2.320.0070.01316.73
7.2.310.0070.01516.42
7.2.300.0140.00316.66
7.2.290.0180.00016.69
7.2.250.0120.00614.97
7.2.240.0060.00614.89
7.2.230.0060.01015.05
7.2.220.0000.01114.84
7.2.210.0080.00615.17
7.2.200.0080.00314.94
7.2.190.0030.01015.13
7.2.180.0060.00615.08
7.2.170.0000.01114.92
7.2.70.0090.01315.04
7.2.60.0950.01015.01
7.2.50.0110.00815.16
7.2.40.0090.01815.22
7.2.30.0120.00815.11
7.2.20.0140.00714.99
7.2.10.0100.01015.01
7.2.00.0130.00914.92
7.1.330.0090.00616.09
7.1.320.0030.00616.11
7.1.310.0070.00715.99
7.1.300.0030.00715.60
7.1.290.0070.00415.93
7.1.280.0040.00716.01
7.1.270.0000.00915.90
7.1.260.0060.00815.86
7.1.200.0090.00615.84
7.1.170.0170.00314.00
7.1.160.0090.00914.04
7.1.150.0120.00613.89
7.1.140.0090.00913.78
7.1.130.0160.00413.99
7.1.120.0150.00414.03
7.1.110.0180.00614.13
7.1.100.0220.00313.79
7.1.90.0190.00314.02
7.1.80.0160.00614.05
7.1.70.0210.00513.94
7.1.60.0890.00332.16
7.1.50.0320.01132.09
7.1.40.0400.01331.94
7.1.30.0350.01031.94
7.1.20.0230.01932.20
7.1.10.0040.01714.08
7.1.00.0120.00914.07

preferences:
27.96 ms | 401 KiB | 5 Q