3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "omceD evoL 1"; function reverseMe( String $string ) { if ( strlen($string > 1) ) { $reversedString = ReverseMe( substr($string, 1) ) . substr($string, 0, 1); } else { $reversedString = $string; } return $reversedString; } reverseMe($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.40.0110.00418.67
8.3.30.0000.01418.54
8.3.20.0080.00020.34
8.3.10.0000.00723.52
8.3.00.0060.00319.66
8.2.170.0140.00722.96
8.2.160.0070.00720.50
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00822.25
8.2.120.0070.00026.35
8.2.110.0070.00322.20
8.2.100.0180.00317.54
8.2.90.0000.00817.47
8.2.80.0080.00018.79
8.2.70.0050.00317.79
8.2.60.0040.00418.05
8.2.50.0040.00418.22
8.2.40.0000.00720.55
8.2.30.0050.00319.12
8.2.20.0040.00418.05
8.2.10.0040.00418.14
8.2.00.0040.00418.24
8.1.270.0070.00022.10
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0050.00520.35
8.1.230.0090.00317.64
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0040.00417.36
8.1.190.0000.00817.52
8.1.180.0050.00318.10
8.1.170.0000.00818.54
8.1.160.0040.00418.87
8.1.150.0030.00520.30
8.1.140.0000.00717.60
8.1.130.0000.00618.92
8.1.120.0040.00417.40
8.1.110.0040.00417.48
8.1.100.0000.00717.34
8.1.90.0000.00717.34
8.1.80.0000.00817.43
8.1.70.0070.00017.38
8.1.60.0060.00317.46
8.1.50.0050.00317.47
8.1.40.0040.00417.57
8.1.30.0050.00317.49
8.1.20.0050.00617.54
8.1.10.0040.00417.50
8.1.00.0040.00417.30
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.45
8.0.270.0040.00417.26
8.0.260.0030.00316.80
8.0.250.0000.00717.00
8.0.240.0040.00416.97
8.0.230.0050.00316.91
8.0.220.0030.00616.88
8.0.210.0040.00416.79
8.0.200.0050.00216.95
8.0.190.0000.00816.93
8.0.180.0030.00316.89
8.0.170.0000.00816.86
8.0.160.0000.00716.87
8.0.150.0000.00716.84
8.0.140.0050.00216.87
8.0.130.0000.00613.32
8.0.120.0000.00716.85
8.0.110.0040.00416.86
8.0.100.0000.00816.95
8.0.90.0040.00416.95
8.0.80.0070.00716.88
8.0.70.0020.00516.82
8.0.60.0000.00716.75
8.0.50.0000.00716.79
8.0.30.0080.00917.24
8.0.20.0110.00917.40
8.0.10.0000.00717.12
8.0.00.0100.00816.88
7.4.330.0050.00015.55
7.4.320.0030.00316.57
7.4.300.0000.00616.45
7.4.290.0000.00716.44
7.4.280.0040.00416.40
7.4.270.0030.00316.57
7.4.260.0030.00316.57
7.4.250.0000.00716.57
7.4.240.0050.00316.55
7.4.230.0030.00316.67
7.4.220.0000.00816.56
7.4.210.0100.01216.61
7.4.200.0000.00716.57
7.4.160.0060.01016.47
7.4.150.0130.01017.40
7.4.140.0100.00817.86
7.4.130.0110.00616.68
7.4.120.0120.01016.48
7.4.110.0030.01316.40
7.4.100.0070.01016.44
7.4.90.0100.00616.55
7.4.80.0120.00919.39
7.4.70.0100.01016.45
7.4.60.0030.01316.47
7.4.50.0030.01216.43
7.4.40.0090.00916.31
7.4.00.0070.00814.90
7.3.330.0030.00313.23
7.3.320.0000.00913.34
7.3.310.0070.00016.38
7.3.300.0080.00016.35
7.3.290.0080.00916.36
7.3.280.0080.00916.37
7.3.270.0160.00917.40
7.3.260.0090.00916.52
7.3.240.0100.00916.36
7.3.230.0080.00816.56
7.3.210.0100.00716.57
7.3.200.0030.01416.65
7.3.190.0090.00616.61
7.3.180.0120.00816.64
7.3.170.0070.01016.28
7.3.160.0030.01316.50
7.3.120.0120.00814.82
7.3.110.0030.01414.82
7.3.100.0080.00514.86
7.3.90.0110.00314.81
7.3.80.0090.00514.84
7.3.70.0090.00714.81
7.3.60.0050.00814.78
7.3.50.0080.00614.69
7.3.40.0070.00714.83
7.3.30.0080.00314.56
7.3.20.0040.00816.71
7.3.10.0070.00916.64
7.3.00.0050.00716.65
7.2.330.0130.01016.47
7.2.320.0160.00716.45
7.2.310.0040.01216.63
7.2.300.0140.00416.33
7.2.290.0060.01216.62
7.2.250.0110.00714.80
7.2.240.0080.01114.97
7.2.230.0040.00714.83
7.2.220.0060.00815.16
7.2.210.0090.00714.77
7.2.200.0040.01015.01
7.2.190.0050.00715.07
7.2.180.0090.00615.05
7.2.170.0050.00614.88
7.2.130.0070.00516.80
7.2.120.0040.01216.62
7.2.110.0350.01016.59
7.2.100.0020.01116.68
7.2.90.0030.00816.95
7.2.80.0090.00516.97
7.2.70.0050.00716.74
7.2.60.0010.01016.94
7.2.50.0040.01216.87
7.2.40.0050.00816.72
7.2.30.0050.01016.88
7.2.20.0070.01017.15
7.2.10.0080.00917.13
7.2.00.0100.00717.16
7.1.330.0060.00815.85
7.1.320.0070.00715.70
7.1.310.0000.01215.93
7.1.300.0050.01115.74
7.1.290.0050.00915.51
7.1.280.0120.00215.90
7.1.270.0060.00915.50
7.1.260.0070.00815.93
7.1.250.0060.00615.79
7.1.200.0040.00715.75
7.1.140.0960.01416.59
7.1.130.0130.01216.70
7.1.120.0140.01216.78
7.1.110.0130.01216.17
7.1.100.0110.01315.96
7.1.90.0110.01216.05
7.1.80.0130.01016.17
7.1.70.0140.01215.41
7.1.60.0410.01433.22
7.1.50.0290.01532.73
7.1.40.0370.01432.40
7.1.30.0250.01432.86
7.1.20.0280.01132.82
7.1.10.0140.01014.86
7.1.00.0090.01514.86

preferences:
47.91 ms | 400 KiB | 5 Q