3v4l.org

run code in 300+ PHP versions simultaneously
<?php const testNamespacedClasses = [ "Namespace\To\SettingOption", "I\Was\Born\InTheUSAIwas", "Something\Onething" ]; function testSnakeCasedModelNames() { foreach (testNamespacedClasses as $class) { echo "$class => "; echo strtolower( implode('_', preg_split('~(?:[^\\\\]+\\\\)+|(?=[A-Z])~', $class, null, PREG_SPLIT_NO_EMPTY) ) ); echo "\n---\n"; } } echo testSnakeCasedModelNames();

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.0070.01418.48
8.3.50.0120.00721.14
8.3.40.0120.00319.10
8.3.30.0110.00718.57
8.3.20.0050.00321.76
8.3.10.0080.00022.05
8.3.00.0080.00023.53
8.2.180.0100.01016.75
8.2.170.0120.00322.96
8.2.160.0070.00719.13
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0000.00820.51
8.2.100.0120.00017.84
8.2.90.0050.00518.00
8.2.80.0040.00417.97
8.2.70.0030.00517.91
8.2.60.0050.00318.22
8.2.50.0080.00018.10
8.2.40.0060.00319.30
8.2.30.0080.00019.21
8.2.20.0050.00318.08
8.2.10.0040.00419.27
8.2.00.0040.00419.09
8.1.280.0070.00725.92
8.1.270.0050.00322.14
8.1.260.0140.00026.35
8.1.250.0000.00828.09
8.1.240.0100.00023.77
8.1.230.0090.00320.93
8.1.220.0050.00517.74
8.1.210.0000.00818.77
8.1.200.0050.00517.35
8.1.190.0040.00417.11
8.1.180.0030.01118.10
8.1.170.0080.00018.53
8.1.160.0030.00618.85
8.1.150.0000.00818.86
8.1.140.0040.00422.12
8.1.130.0000.00720.35
8.1.120.0040.00417.55
8.1.110.0000.00817.58
8.1.100.0000.00817.54
8.1.90.0060.00317.48
8.1.80.0000.00917.55
8.1.70.0050.00517.58
8.1.60.0080.00417.61
8.1.50.0040.00417.62
8.1.40.0080.00017.66
8.1.30.0040.00417.66
8.1.20.0050.00317.74
8.1.10.0040.00417.46
8.1.00.0040.00417.39
8.0.300.0050.00319.85
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0080.00016.94
8.0.260.0070.00020.12
8.0.250.0050.00317.19
8.0.240.0000.00717.16
8.0.230.0060.00317.21
8.0.220.0030.00317.13
8.0.210.0040.00417.08
8.0.200.0030.00317.11
8.0.190.0070.00017.15
8.0.180.0040.00417.04
8.0.170.0060.00317.08
8.0.160.0040.00417.09
8.0.150.0050.00216.92
8.0.140.0000.00717.05
8.0.130.0000.00513.48
8.0.120.0040.00417.05
8.0.110.0000.00816.92
8.0.100.0050.00317.12
8.0.90.0060.00317.12
8.0.80.0120.00717.04
8.0.70.0040.00417.00
8.0.60.0070.00017.12
8.0.50.0060.00316.96
8.0.30.0140.00717.22
8.0.20.0130.00717.29
8.0.10.0040.00417.20
8.0.00.0080.01117.00
7.4.330.0030.00315.55
7.4.320.0060.00016.56
7.4.300.0030.00716.75
7.4.290.0030.00316.76
7.4.280.0030.00616.63
7.4.270.0000.00816.71
7.4.260.0030.00516.63
7.4.250.0000.00716.72
7.4.240.0070.00016.76
7.4.230.0030.00416.68
7.4.220.0040.00416.85
7.4.210.0050.01116.80
7.4.200.0050.00216.66
7.4.130.0120.00616.79
7.4.120.0100.00716.67
7.4.110.0140.00316.40
7.4.100.0080.00816.65
7.4.90.0070.01016.86
7.4.80.0130.00719.39
7.4.70.0100.00716.39
7.4.60.0100.01016.71
7.4.50.0090.00616.76
7.4.40.0070.01016.75
7.4.00.0020.01614.97
7.3.330.0000.00513.34
7.3.320.0060.00013.49
7.3.310.0070.00016.55
7.3.300.0000.00616.51
7.3.290.0110.00616.52
7.3.280.0120.00316.53
7.3.260.0120.00816.61
7.3.240.0110.00616.69
7.3.230.0090.01216.77
7.3.210.0110.00616.53
7.3.200.0130.00316.50
7.3.190.0030.01616.85
7.3.180.0090.00916.56
7.3.170.0000.01516.71
7.3.160.0100.00716.86
7.3.120.0050.01115.20
7.3.110.0050.00915.08
7.3.100.0030.01214.74
7.3.90.0080.00615.13
7.3.80.0070.00614.88
7.3.70.0050.00914.89
7.3.60.0050.00514.89
7.3.50.0080.00715.08
7.3.40.0050.00514.98
7.3.30.0080.00614.99
7.3.20.0110.00716.29
7.3.10.0090.00916.33
7.3.00.0090.00516.26
7.2.330.0100.00716.66
7.2.320.0120.00616.93
7.2.310.0060.01116.76
7.2.300.0090.00916.86
7.2.290.0110.01116.85
7.2.250.0100.00715.37
7.2.240.0050.01015.36
7.2.230.0060.01115.16
7.2.220.0080.00715.13
7.2.210.0050.00715.27
7.2.200.0060.00815.16
7.2.190.0050.01115.10
7.2.180.0090.00715.23
7.2.170.0050.01015.08
7.2.160.0080.01115.35
7.2.150.0100.00916.51
7.2.140.0090.00616.44
7.2.130.0060.00816.41
7.2.120.0310.00616.41
7.2.110.0090.01116.56
7.2.100.0080.00716.49
7.2.90.0050.01216.53
7.2.80.0090.00716.47
7.2.70.0110.00616.47
7.2.60.0110.01016.47
7.2.50.0070.00716.54
7.2.40.0120.00616.50
7.2.30.0110.00816.52
7.2.20.0080.00816.46
7.2.10.0090.00716.57
7.2.00.0080.00516.38
7.1.330.0070.00816.09
7.1.320.0030.00915.92
7.1.310.0060.00515.88
7.1.300.0120.00615.16
7.1.290.0140.00815.15
7.1.280.0070.00715.28
7.1.270.0070.01115.37
7.1.260.0060.00915.41
7.1.250.0120.00715.36
7.1.240.0090.00316.07
7.1.230.0100.00315.93
7.1.220.0030.01115.98
7.1.210.0060.01016.01
7.1.200.0040.00716.15
7.1.190.0040.00716.09
7.1.180.0090.00615.97
7.1.170.0030.00716.09
7.1.160.0000.01216.02
7.1.150.0000.00916.02
7.1.140.0100.00715.77
7.1.130.0030.00715.95
7.1.120.0030.00915.87
7.1.110.0000.00916.07
7.1.100.0060.00615.89
7.1.90.0050.00315.99
7.1.80.0060.01016.08
7.1.70.0060.00616.11
7.1.60.0070.00316.06
7.1.50.0060.00615.77
7.1.40.0150.00016.16
7.1.30.0030.01015.71
7.1.20.0030.01016.01
7.1.10.0030.00916.04
7.1.00.0030.00616.10

preferences:
48.94 ms | 401 KiB | 5 Q