3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!function_exists("Encoder")){ function Encoder($inputvalue){ $output=array('test1','test2',$inputvalue); for($counter1=0; $counter1<3; $counter1++){ for($counter2=0; $counter2<strlen($output[$counter1]); $counter2++) $output[$counter1][$counter2] = chr(ord($output[$counter1][$counter2])-1); if($counter1==1) $output[2]=$output[0]($output[1]($output[2])); } return $output[2]; } $string1='ABC'; $funct='Encoder'; //calls encoder on "SylOSypNS0gvy08pzSrIBwA" $strin2=$funct('DEF'); $string2(); //calls encoder on string1 and concatenates it with a space an $VPXA $output_2=$string2('',$funct($string1)); //print string1 $string1(); $output_2(); }

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.0100.01018.68
8.3.50.0060.00818.02
8.3.40.0070.00718.79
8.3.30.0100.00318.79
8.3.20.0040.00421.77
8.3.10.0000.00921.77
8.3.00.0000.00820.96
8.2.180.0150.00616.63
8.2.170.0070.00722.96
8.2.160.0060.01322.96
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00821.04
8.2.120.0080.00026.35
8.2.110.0060.00321.17
8.2.100.0060.00617.68
8.2.90.0040.00417.97
8.2.80.0040.00418.31
8.2.70.0040.00417.93
8.2.60.0050.00318.04
8.2.50.0000.00818.16
8.2.40.0030.00620.45
8.2.30.0040.00419.27
8.2.20.0020.00518.06
8.2.10.0070.00018.04
8.2.00.0040.00418.09
8.1.280.0070.00725.92
8.1.270.0040.00423.72
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0100.00023.92
8.1.230.0030.00921.04
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00817.13
8.1.180.0060.00618.10
8.1.170.0080.00018.46
8.1.160.0000.00718.83
8.1.150.0070.00020.73
8.1.140.0040.00417.75
8.1.130.0070.00019.04
8.1.120.0000.00717.38
8.1.110.0040.00417.39
8.1.100.0040.00417.43
8.1.90.0060.00317.48
8.1.80.0040.00417.39
8.1.70.0050.00317.43
8.1.60.0030.00617.54
8.1.50.0050.00317.46
8.1.40.0040.00417.44
8.1.30.0030.00617.71
8.1.20.0040.00417.62
8.1.10.0040.00417.59
8.1.00.0000.00917.47
8.0.300.0050.00220.03
8.0.290.0080.00016.75
8.0.280.0030.00318.53
8.0.270.0000.00917.18
8.0.260.0030.00317.29
8.0.250.0000.00617.04
8.0.240.0030.00316.95
8.0.230.0050.00317.05
8.0.220.0000.00616.99
8.0.210.0000.00717.00
8.0.200.0030.00316.91
8.0.190.0080.00016.92
8.0.180.0060.00316.98
8.0.170.0060.00317.00
8.0.160.0070.00017.01
8.0.150.0050.00216.94
8.0.140.0000.00916.96
8.0.130.0040.00413.45
8.0.120.0000.00816.95
8.0.110.0030.00316.90
8.0.100.0040.00416.86
8.0.90.0080.00016.88
8.0.80.0060.00816.94
8.0.70.0030.00516.98
8.0.60.0080.00017.01
8.0.50.0080.00016.92
8.0.30.0070.01117.30
8.0.20.0140.00817.40
8.0.10.0000.00817.08
8.0.00.0090.00916.86
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0000.00716.54
7.4.290.0030.00316.61
7.4.280.0060.00316.52
7.4.270.0040.00416.53
7.4.260.0030.00616.63
7.4.250.0080.00016.61
7.4.240.0000.00816.46
7.4.230.0000.00716.64
7.4.220.0030.00516.66
7.4.210.0050.01316.48
7.4.200.0000.00716.57
7.4.160.0090.00616.59
7.4.140.0090.00817.86
7.4.130.0090.01516.57
7.4.120.0110.00716.55
7.4.110.0090.00916.60
7.4.100.0100.01016.48
7.4.90.0090.00916.56
7.4.80.0110.00819.39
7.4.70.0150.00716.56
7.4.60.0090.00916.77
7.4.50.0030.01316.56
7.4.40.0140.00716.69
7.4.00.0090.00714.91
7.3.330.0050.00013.41
7.3.320.0030.00313.23
7.3.310.0000.00716.44
7.3.300.0070.00016.33
7.3.290.0030.00316.46
7.3.280.0070.00816.47
7.3.260.0090.01016.38
7.3.240.0090.00816.47
7.3.230.0120.00916.66
7.3.210.0090.01216.70
7.3.200.0110.01116.77
7.3.190.0100.01016.54
7.3.180.0060.01216.61
7.3.170.0100.01216.58
7.3.160.0060.01016.59
7.3.120.0110.00815.01
7.3.110.0050.01115.02
7.3.100.0080.00814.96
7.3.90.0030.00914.80
7.3.80.0050.00915.01
7.3.70.0040.00714.95
7.3.60.0060.00814.95
7.3.50.0060.00814.84
7.3.40.0060.00614.89
7.3.30.0020.01414.93
7.3.20.0070.00716.66
7.3.10.0110.00516.60
7.3.00.0080.00616.63
7.2.330.0080.00816.89
7.2.320.0090.00916.36
7.2.310.0080.00816.79
7.2.300.0080.01616.77
7.2.290.0160.00916.70
7.2.250.0080.01115.13
7.2.240.0070.01215.00
7.2.230.0080.00815.04
7.2.220.0080.00614.92
7.2.210.0030.01015.05
7.2.200.0060.00815.20
7.2.190.0070.00915.09
7.2.180.0030.01215.04
7.2.170.0050.01215.20
7.2.80.0000.01216.78
7.2.60.0040.00816.82
7.2.40.1250.01518.11
7.2.30.2390.01118.01
7.2.20.2770.01118.00
7.2.10.2920.00817.91
7.2.00.2760.01318.13
7.1.330.0090.00615.73
7.1.320.0060.00715.85
7.1.310.0050.00715.57
7.1.300.0030.00815.84
7.1.290.0060.00815.89
7.1.280.0050.01015.70
7.1.270.0030.01015.66
7.1.260.0090.00615.91
7.1.200.0120.01215.75
7.1.160.0970.01116.98
7.1.150.2720.01116.78
7.1.140.3070.01416.99
7.1.130.2720.01217.00
7.1.120.2780.01117.05
7.1.110.3060.01016.45
7.1.100.2630.01116.10
7.1.90.4150.01116.54
7.1.80.2740.00816.09
7.1.70.3220.01015.54
7.1.60.3200.01533.27
7.1.50.6210.01332.96
7.1.40.4890.01532.66
7.1.30.5100.01632.69
7.1.20.5610.01532.78
7.1.10.5810.01014.71
7.1.00.3320.00714.98

preferences:
30.62 ms | 400 KiB | 5 Q