3v4l.org

run code in 300+ PHP versions simultaneously
<?php function reverseString($string = 'nice') { } function rev($str) { return $str?rev(substr($str,1)).$str[0]:''; } echo rev('Online strlen() function for some newbies who cannot bla bla bla do something haha, nice, i dont have to repeat it Online strlen() function for some newbies who cannot bla bla bla do something haha, nice, i dont have to repeat it');

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.0110.01118.43
8.3.50.0090.00621.20
8.3.40.0070.00718.84
8.3.30.0210.00019.04
8.3.20.0140.00020.04
8.3.10.0040.00422.04
8.3.00.0040.01120.70
8.2.180.0040.01116.32
8.2.170.0080.00822.96
8.2.160.0140.00319.15
8.2.150.0070.01124.18
8.2.140.0100.01024.66
8.2.130.0070.00726.16
8.2.120.0140.00019.54
8.2.110.0000.01022.01
8.2.100.0080.00317.78
8.2.90.0030.00618.03
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0000.00818.03
8.2.30.0040.00418.23
8.2.20.0040.00417.70
8.2.10.0020.00517.61
8.2.00.0080.00217.67
8.1.280.0110.00725.92
8.1.270.0070.01122.31
8.1.260.0090.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.02
8.1.230.0100.00317.48
8.1.220.0060.00317.74
8.1.210.0040.00418.93
8.1.200.0110.00017.10
8.1.190.0040.00417.40
8.1.180.0000.00818.61
8.1.170.0030.00518.71
8.1.160.0070.00022.18
8.1.150.0040.00418.61
8.1.140.0040.00417.32
8.1.130.0070.00017.76
8.1.120.0040.00317.45
8.1.110.0050.00217.48
8.1.100.0000.00817.33
8.1.90.0030.00517.34
8.1.80.0000.00717.38
8.1.70.0000.00717.39
8.1.60.0040.00417.46
8.1.50.0000.00717.46
8.1.40.0000.00817.57
8.1.30.0050.00217.57
8.1.20.0000.00817.54
8.1.10.0040.00417.57
8.1.00.0000.00817.55
8.0.300.0040.00419.92
8.0.290.0040.00417.16
8.0.280.0040.00418.31
8.0.270.0030.00317.25
8.0.260.0030.00316.82
8.0.250.0020.00516.92
8.0.240.0060.00316.91
8.0.230.0030.00316.95
8.0.220.0030.00316.88
8.0.210.0070.00016.78
8.0.200.0070.00016.98
8.0.190.0050.00316.96
8.0.180.0030.00316.98
8.0.170.0040.00416.82
8.0.160.0000.00716.79
8.0.150.0040.00316.78
8.0.140.0030.00316.78
8.0.130.0000.00613.29
8.0.120.0070.00016.77
8.0.110.0000.00916.75
8.0.100.0050.00316.71
8.0.90.0070.00016.84
8.0.80.0060.00916.91
8.0.70.0000.00716.72
8.0.60.0000.00816.95
8.0.50.0040.00416.95
8.0.30.0120.00617.12
8.0.20.0140.00917.40
8.0.10.0070.00016.84
8.0.00.0020.01616.77
7.4.330.0040.00015.01
7.4.320.0030.00316.52
7.4.300.0060.00016.57
7.4.290.0000.00716.39
7.4.280.0030.00316.44
7.4.270.0030.00316.61
7.4.260.0040.00416.53
7.4.250.0000.00816.41
7.4.240.0050.00316.48
7.4.230.0000.00716.48
7.4.220.0040.01216.54
7.4.210.0090.00716.54
7.4.200.0000.00716.48
7.4.190.0070.00016.45
7.4.160.0110.00516.33
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0080.01416.43
7.4.120.0080.01016.54
7.4.110.0070.01116.44
7.4.100.0070.01016.45
7.4.90.0060.01216.35
7.4.80.0140.00319.39
7.4.70.0060.00916.45
7.4.60.0100.01016.38
7.4.50.0040.00416.50
7.4.40.0160.00022.77
7.4.30.0070.01016.54
7.4.00.0070.01014.71
7.3.330.0050.00013.15
7.3.320.0030.00313.35
7.3.310.0000.00716.26
7.3.300.0070.00016.36
7.3.290.0130.00716.24
7.3.280.0070.01016.29
7.3.270.0060.01017.40
7.3.260.0120.00616.59
7.3.250.0090.00816.60
7.3.240.0120.00616.23
7.3.230.0100.01016.39
7.3.210.0060.01216.45
7.3.200.0150.00819.39
7.3.190.0060.01216.43
7.3.180.0130.00316.51
7.3.170.0030.01316.27
7.3.160.0170.00016.45
7.3.120.0040.01214.46
7.2.330.0060.01316.54
7.2.320.0030.01316.77
7.2.310.0120.00916.61
7.2.300.0130.00416.68
7.2.290.0080.00916.88
7.2.60.0030.00916.95
7.1.200.0040.00715.94
7.1.70.0000.00817.13
7.1.60.0070.01019.82
7.1.50.0030.02016.65
7.1.00.0000.04722.40
7.0.200.2270.00314.89
7.0.140.0000.07722.18
7.0.60.0100.07319.87
7.0.50.0030.08017.77
7.0.40.0130.06720.13
7.0.30.0270.05720.07
7.0.20.0430.07320.15
7.0.10.0270.06720.21
7.0.00.0030.04320.07
5.6.280.0070.07021.14
5.6.210.0070.05720.63
5.6.200.0170.06018.30
5.6.190.0070.04320.47
5.6.180.4170.04020.52
5.6.170.0130.05320.52
5.6.160.0070.04020.61
5.6.150.0030.08018.35
5.6.140.0070.08018.25
5.6.130.0070.04318.29
5.6.120.0170.07321.12
5.6.110.0170.07321.13
5.6.100.0100.07021.16
5.6.90.0070.07721.12
5.6.80.0070.08020.49
5.6.70.0300.06020.50
5.5.350.0070.07720.53
5.5.340.0000.09018.01
5.5.330.0100.07320.19
5.5.320.0300.06720.33
5.5.310.0270.07720.31
5.5.300.0070.07718.01
5.5.290.0130.03318.11
5.5.280.0130.08020.99
5.5.270.0070.05320.89
5.5.260.0100.08320.80
5.5.250.0030.04020.91
5.5.240.0030.08720.48
5.4.450.0730.05719.37
5.4.440.0670.06319.64
5.4.430.0730.06319.55
5.4.420.0630.05019.48
5.4.410.0330.05319.13
5.4.400.0270.06318.86
5.4.390.0400.06018.70
5.4.380.0230.05318.69
5.4.370.0100.06018.63
5.4.360.0200.04718.61
5.4.350.0170.05018.84
5.4.340.0100.05718.87
5.4.320.0050.03912.61
5.4.310.0100.03812.61
5.4.300.0070.03812.61
5.4.290.0070.03612.60
5.4.280.0050.03512.51
5.4.270.0060.03612.50
5.4.260.0200.04318.73
5.4.250.0170.04318.84
5.4.240.0030.05319.01
5.4.230.0100.05018.84
5.4.220.0170.06318.96
5.4.210.0130.07319.05
5.4.200.0100.05018.95
5.4.190.0130.05018.98
5.4.180.0070.05019.01
5.4.170.0130.04718.73
5.4.160.0000.06019.01
5.4.150.0130.05318.99
5.4.140.0030.05316.35
5.4.130.0130.04716.42
5.4.120.0070.05016.44
5.4.110.0170.06716.59
5.4.100.0170.06316.68
5.4.90.0100.06316.59
5.4.80.0030.05316.61
5.4.70.0130.06016.45
5.4.60.0200.05716.60
5.4.50.0170.07016.66
5.4.40.0130.04716.57
5.4.30.0070.04716.56
5.4.20.0000.06016.43
5.4.10.0100.07016.46
5.4.00.0000.05715.82
5.3.290.0100.04212.80
5.3.280.0000.06014.77
5.3.270.0030.06014.55
5.3.260.0070.05714.46
5.3.250.0130.06714.65
5.3.240.0170.04314.63
5.3.230.0100.06714.70
5.3.220.0070.07314.66
5.3.210.0100.07014.82
5.3.200.0130.07014.69
5.3.190.0100.05314.59
5.3.180.0100.05014.68
5.3.170.0170.04314.57
5.3.160.0200.05714.58
5.3.150.0270.05714.76
5.3.140.0000.08014.45
5.3.130.0100.05314.57
5.3.120.0170.04714.55
5.3.110.0070.05014.58
5.3.100.0030.05314.14
5.3.90.0130.04014.14
5.3.80.0070.05014.13
5.3.70.0100.06714.14
5.3.60.0100.04714.03
5.3.50.0100.05713.84
5.3.40.0100.04713.98
5.3.30.0030.05713.77
5.3.20.0070.06713.88
5.3.10.0030.07713.78
5.3.00.0030.05013.75
5.2.170.0030.06311.46
5.2.160.0000.04311.46
5.2.150.0100.05711.45
5.2.140.0000.05311.34
5.2.130.0070.03711.30
5.2.120.0100.03311.43
5.2.110.0100.03711.33
5.2.100.0000.06311.31
5.2.90.0030.05711.16
5.2.80.0030.06011.28
5.2.70.0100.03711.28
5.2.60.0130.03311.37
5.2.50.0070.04011.34
5.2.40.0170.03311.20
5.2.30.0130.03711.39
5.2.20.0030.04711.18
5.2.10.0000.04311.29
5.2.00.0100.04310.96
5.1.60.0030.03310.19
5.1.50.0130.02710.07
5.1.40.0030.04010.29
5.1.30.0030.05010.55
5.1.20.0070.05010.68
5.1.10.0070.03710.50
5.1.00.0030.05010.46
5.0.50.0030.0408.80
5.0.40.0170.0138.82
5.0.30.0070.0508.57
5.0.20.0070.0378.52
5.0.10.0070.0238.43
5.0.00.0030.0408.33
4.4.90.0000.0236.64
4.4.80.0000.0236.63
4.4.70.0070.0276.62
4.4.60.0030.0236.66
4.4.50.0030.0306.66
4.4.40.0030.0476.65
4.4.30.0030.0236.65
4.4.20.0000.0276.71
4.4.10.0000.0336.78
4.4.00.0000.0436.69
4.3.110.0030.0206.52
4.3.100.0000.0236.52
4.3.90.0030.0206.52
4.3.80.0030.0336.52
4.3.70.0000.0236.52
4.3.60.0000.0336.52
4.3.50.0100.0136.52
4.3.40.0030.0306.52
4.3.30.0000.0236.52
4.3.20.0070.0236.52
4.3.10.0030.0236.52
4.3.00.0070.0237.09

preferences:
60.26 ms | 401 KiB | 5 Q