3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "luke"; echo preg_replace_callback('~^(?![eiux])[a-z]~', function($m) { return ucfirst($m[0]); }, $str); $str = "egg"; echo "\n" . preg_replace_callback('~^(?![eiux])[a-z]~', function($m) { return ucfirst($m[0]); }, $str);

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.130.0040.00416.85
8.3.120.0040.00418.99
8.3.110.0030.00620.94
8.3.100.0090.00624.06
8.3.90.0080.00026.77
8.3.80.0000.00916.63
8.3.70.0070.00716.75
8.3.60.0070.01118.30
8.3.50.0120.00722.14
8.3.40.0000.01518.84
8.3.30.0070.00718.79
8.3.20.0040.00421.86
8.3.10.0040.00420.34
8.3.00.0050.00322.46
8.2.250.0080.00018.71
8.2.240.0090.00616.84
8.2.230.0070.00322.58
8.2.220.0060.00337.54
8.2.210.0120.00626.77
8.2.200.0030.00616.63
8.2.190.0030.01316.63
8.2.180.0100.01025.92
8.2.170.0150.00022.96
8.2.160.0030.01019.46
8.2.150.0030.00524.18
8.2.140.0000.00924.66
8.2.130.0030.00626.16
8.2.120.0040.00420.02
8.2.110.0070.00322.38
8.2.100.0000.01317.91
8.2.90.0000.00819.20
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0050.00319.78
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0000.00718.23
8.2.20.0040.00418.27
8.2.10.0000.00719.25
8.2.00.0030.00519.40
8.1.300.0040.00418.39
8.1.290.0060.00318.88
8.1.280.0040.01425.92
8.1.270.0030.00522.51
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.61
8.1.230.0040.00720.89
8.1.220.0000.00817.77
8.1.210.0090.00018.77
8.1.200.0090.00017.35
8.1.190.0030.00517.35
8.1.180.0080.00018.10
8.1.170.0030.00518.89
8.1.160.0040.00418.93
8.1.150.0000.00718.93
8.1.140.0040.00420.80
8.1.130.0000.00720.21
8.1.120.0050.00317.67
8.1.110.0000.00817.62
8.1.100.0000.00817.55
8.1.90.0030.00617.57
8.1.80.0070.00017.55
8.1.70.0030.00317.60
8.1.60.0040.00417.75
8.1.50.0060.00317.64
8.1.40.0040.00417.61
8.1.30.0050.00317.73
8.1.20.0070.00317.71
8.1.10.0000.00717.70
8.1.00.0040.00417.68
8.0.300.0050.00318.77
8.0.290.0070.00016.75
8.0.280.0000.00818.38
8.0.270.0070.00016.96
8.0.260.0050.00220.14
8.0.250.0070.00017.12
8.0.240.0060.00317.05
8.0.230.0000.00817.11
8.0.220.0020.00517.03
8.0.210.0000.00817.00
8.0.200.0000.00616.96
8.0.190.0060.00317.10
8.0.180.0000.00817.09
8.0.170.0120.00017.05
8.0.160.0080.00017.04
8.0.150.0050.00317.02
8.0.140.0060.00517.05
8.0.130.0030.00313.52
8.0.120.0000.00717.05
8.0.110.0000.00716.87
8.0.100.0040.00416.95
8.0.90.0080.00016.93
8.0.80.0060.00817.02
8.0.70.0000.00717.11
8.0.60.0040.00416.93
8.0.50.0000.00717.06
8.0.30.0050.01117.45
8.0.20.0080.01117.18
8.0.10.0100.01017.37
8.0.00.0090.00916.97
7.4.330.0060.00015.55
7.4.320.0000.00616.73
7.4.300.0030.00616.71
7.4.290.0050.00316.74
7.4.280.0040.00416.85
7.4.270.0000.00716.77
7.4.260.0030.00316.77
7.4.250.0000.00716.59
7.4.240.0050.00216.80
7.4.230.0080.00016.89
7.4.220.0030.00316.64
7.4.210.0030.01116.75
7.4.200.0000.00716.55
7.4.150.0100.00916.88
7.4.140.0090.00916.57
7.4.130.0130.00816.68
7.4.120.0140.00516.76
7.4.110.0090.00916.67
7.4.100.0110.01016.65
7.4.90.0110.01016.67
7.4.80.0080.01218.05
7.4.70.0090.00816.62
7.4.60.0090.01016.55
7.4.50.0090.00716.68
7.4.40.0070.01316.66
7.4.30.0140.00316.81
7.4.20.0060.01216.82
7.4.10.0090.00815.98
7.4.00.0070.00815.79
7.3.330.0000.00613.52
7.3.320.0060.00013.45
7.3.310.0030.00316.49
7.3.300.0000.00716.34
7.3.290.0030.00316.37
7.3.280.0100.00616.36
7.3.270.0150.00316.78
7.3.260.0130.00616.57
7.3.250.0120.00616.70
7.3.240.0130.00516.69
7.3.230.0090.00916.57
7.3.220.0250.00016.46
7.3.210.0060.01216.59
7.3.200.0130.00716.68
7.3.190.0110.01316.69
7.3.180.0100.00716.58
7.3.170.0090.01016.50
7.3.160.0130.00716.59
7.3.150.0140.00316.52
7.3.140.0130.00316.65
7.3.130.0030.01415.72
7.3.120.0070.01015.72
7.3.110.0080.01215.88
7.3.100.0100.00715.85
7.3.90.0050.01115.93
7.3.80.0080.00915.89
7.3.70.0060.00715.20
7.3.60.0100.00415.24
7.3.50.0100.00715.24
7.3.40.0070.00715.21
7.3.30.0070.00815.17
7.3.20.0130.00816.38
7.3.10.0140.00416.31
7.3.00.0080.01116.27
7.2.340.0260.00816.79
7.2.330.0170.00916.85
7.2.320.0080.01416.67
7.2.310.0170.00816.69
7.2.300.0140.00716.59
7.2.290.0150.01116.77
7.2.280.0220.00616.74
7.2.270.0180.01116.55
7.2.260.0100.01015.80
7.2.250.0120.01215.79
7.2.240.0150.00715.91
7.2.230.0170.00515.88
7.2.220.0080.01415.91
7.2.210.0110.00915.70
7.2.200.0100.00715.40
7.2.190.0130.00615.30
7.2.180.0080.00715.35
7.2.170.0080.00915.38
7.2.160.0100.00715.24
7.2.150.0130.00816.42
7.2.140.0110.01116.51
7.2.130.0120.00816.54
7.2.120.0120.00716.65
7.2.110.0110.00816.58
7.2.100.0110.00816.54
7.2.90.0110.00716.60
7.2.80.0100.00916.66
7.2.70.0130.00716.54
7.2.60.0120.00916.52
7.2.50.0110.01016.44
7.2.40.0140.00716.73
7.2.30.0120.00816.87
7.2.20.0100.00816.92
7.2.10.0100.00516.88
7.2.00.0080.00816.90
7.1.330.0170.00716.01
7.1.320.0150.01015.85
7.1.310.0140.00915.80
7.1.300.0080.01415.53
7.1.290.0130.00715.51
7.1.280.0120.00815.48
7.1.270.0170.00615.43
7.1.260.0130.00915.39
7.1.250.0100.01015.54
7.1.240.0120.00515.65
7.1.230.0110.00915.73
7.1.220.0110.01015.83
7.1.210.0080.01115.78
7.1.200.0150.00215.95
7.1.190.0090.00915.85
7.1.180.0250.00415.89
7.1.170.0120.00815.84
7.1.160.0090.00815.92
7.1.150.0130.00615.86
7.1.140.0140.00415.82
7.1.130.0120.00715.88
7.1.120.0130.00315.92
7.1.110.0160.00315.96
7.1.100.0120.00815.89
7.1.90.0140.00515.88
7.1.80.0100.01115.88
7.1.70.0130.00715.86
7.1.60.0100.00815.91
7.1.50.0100.00915.89
7.1.40.0090.00915.84
7.1.30.0090.00815.76
7.1.20.0250.00615.81
7.1.10.0110.00815.90
7.1.00.0140.00415.91

preferences:
28.66 ms | 403 KiB | 5 Q