3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "tHe iPad hAS gONE ouT of STOCK PoWER uP YOur iPhone wHAT moDEL is YOUR aPPLE iPHOne", "fly the chopper to the helipad. an audiphone is a type of hearing aid consisting of a diaphragm that, when placed against the upper teeth, conveys sound vibrations to the inner ear" ]; foreach ($strings as $string) { echo preg_replace_callback('~\bi\K(?:pad|phone)\b|[a-z]+~', function($m) {return ucfirst($m[0]);}, strtolower($string)); echo "\n---\n"; }

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.10.0120.00616.88
8.5.00.0110.01120.30
8.4.160.0130.00823.72
8.4.150.0020.00114.05
8.4.140.0140.00717.99
8.4.130.0140.00418.00
8.4.120.0100.01020.30
8.4.110.0040.00522.38
8.4.100.0120.01017.84
8.4.90.0120.00918.40
8.4.80.0050.00417.90
8.4.70.0130.00518.16
8.4.60.0150.00618.73
8.4.50.0080.00418.78
8.4.40.0060.00319.69
8.4.30.0130.00719.41
8.4.20.0040.01920.49
8.4.10.0100.01018.71
8.3.290.0100.00622.66
8.3.280.0110.01018.48
8.3.270.0130.00616.60
8.3.260.0120.00816.80
8.3.250.0110.00819.05
8.3.240.0070.00316.83
8.3.230.0050.00416.91
8.3.220.0080.01017.10
8.3.210.0040.00716.93
8.3.200.0050.00416.74
8.3.190.0110.00817.20
8.3.180.0110.00916.80
8.3.170.0070.01116.93
8.3.160.0140.00317.20
8.3.150.0070.01118.80
8.3.140.0070.01117.11
8.3.130.0060.00318.53
8.3.120.0030.00620.59
8.3.110.0090.00020.94
8.3.100.0030.00918.68
8.3.90.0040.00426.77
8.3.80.0090.00016.70
8.3.70.0070.01018.30
8.3.60.0120.00618.68
8.3.50.0130.00317.54
8.3.40.0080.00818.83
8.3.30.0090.00618.72
8.3.20.0040.00421.74
8.3.10.0080.00023.45
8.3.00.0070.00321.72
8.2.300.0130.00818.35
8.2.290.0110.00820.47
8.2.280.0140.00618.64
8.2.270.0100.00717.07
8.2.260.0030.00618.75
8.2.250.0030.00518.52
8.2.240.0080.00017.23
8.2.230.0050.00322.58
8.2.220.0060.00324.06
8.2.210.0140.00426.77
8.2.200.0030.00716.63
8.2.190.0040.01416.63
8.2.180.0160.00625.92
8.2.170.0140.00019.08
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00819.79
8.2.110.0100.00319.33
8.2.100.0040.00718.03
8.2.90.0040.00418.03
8.2.80.0030.00519.28
8.2.70.0000.00918.00
8.2.60.0030.00517.88
8.2.50.0000.00718.16
8.2.40.0060.00319.60
8.2.30.0030.00519.39
8.2.20.0060.00318.21
8.2.10.0080.00020.02
8.2.00.0000.00819.35
8.1.340.0150.00617.73
8.1.330.0090.00822.13
8.1.320.0080.01116.34
8.1.310.0030.01418.68
8.1.300.0150.00317.72
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00619.46
8.1.230.0040.00822.57
8.1.220.0000.00817.78
8.1.210.0050.00518.77
8.1.200.0100.00017.48
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00817.72
8.1.160.0040.00418.83
8.1.150.0040.00418.85
8.1.140.0070.00022.21
8.1.130.0040.00417.48
8.1.120.0060.00317.58
8.1.110.0080.00017.51
8.1.100.0000.00817.50
8.1.90.0000.00717.49
8.1.80.0000.01017.67
8.1.70.0050.00317.48
8.1.60.0040.00417.63
8.1.50.0040.00417.69
8.1.40.0030.00517.56
8.1.30.0000.00817.82
8.1.20.0000.00817.72
8.1.10.0080.00017.63
8.1.00.0000.00717.60
8.0.300.0000.00822.09
8.0.290.0060.00316.75
8.0.280.0000.00718.38
8.0.270.0000.00717.39
8.0.260.0070.00017.03
8.0.250.0030.00317.07
8.0.240.0030.00317.15
8.0.230.0020.00517.00
8.0.220.0000.00717.00
8.0.210.0070.00017.06
8.0.200.0030.00317.11
8.0.190.0040.00417.13
8.0.180.0040.00417.00
8.0.170.0030.00717.04
8.0.160.0050.00217.10
8.0.150.0040.00416.98
8.0.140.0000.00717.04
8.0.130.0000.00613.47
8.0.120.0040.00416.96
8.0.110.0050.00317.11
8.0.100.0000.00716.91
8.0.90.0070.00016.93
8.0.80.0150.00817.07
8.0.70.0020.00517.04
8.0.60.0050.00216.84
8.0.50.0020.00517.10
8.0.30.0110.00617.05
8.0.20.0050.01617.40
8.0.10.0040.00417.13
8.0.00.0100.01016.95
7.4.330.0000.00516.78
7.4.320.0030.00316.73
7.4.300.0030.00316.71
7.4.290.0040.00416.80
7.4.280.0040.00416.82
7.4.270.0030.00316.77
7.4.260.0000.00716.77
7.4.250.0040.00416.70
7.4.240.0050.00216.82
7.4.230.0000.00816.62
7.4.220.0000.00816.71
7.4.210.0090.00616.77
7.4.200.0040.00416.62
7.4.160.0070.01016.65
7.4.140.0080.01017.86
7.4.130.0030.01416.89
7.4.120.0080.01216.81
7.4.110.0070.01116.64
7.4.100.0180.00016.79
7.4.90.0090.00916.64
7.4.80.0090.00919.39
7.4.70.0060.01616.76
7.4.60.0030.01316.72
7.4.50.0000.01516.55
7.4.40.0030.01316.79
7.4.00.0040.00715.23
7.3.330.0030.00313.45
7.3.320.0060.00013.30
7.3.310.0000.00816.52
7.3.300.0000.00616.57
7.3.290.0000.00716.38
7.3.280.0000.01416.44
7.3.260.0120.00616.76
7.3.240.0150.00516.63
7.3.230.0120.00616.66
7.3.210.0110.00716.78
7.3.200.0030.01716.43
7.3.190.0090.00916.56
7.3.180.0100.00716.52
7.3.170.0170.00016.76
7.3.160.0150.00316.69
7.2.330.0170.00016.84
7.2.320.0090.01216.82
7.2.310.0090.00916.66
7.2.300.0110.00616.77
7.2.290.0170.00616.67
7.2.120.0110.00816.68
7.2.110.0060.01016.48
7.2.100.0120.00616.68
7.2.90.0140.00716.68
7.2.80.0030.01716.41
7.2.70.0120.00917.14
7.2.60.0070.01116.96
7.2.50.0090.01216.96
7.2.40.0120.00616.84
7.2.30.0100.01017.02
7.2.20.0090.01316.79
7.2.10.0000.01917.19
7.2.00.0100.01017.16
5.6.380.0140.00514.21

preferences:
39.4 ms | 403 KiB | 5 Q