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.40.0070.00718.82
8.3.30.0160.00618.88
8.3.20.0070.00021.81
8.3.10.0040.00421.62
8.3.00.0150.00320.95
8.2.170.0110.00422.96
8.2.160.0100.00322.96
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0060.00320.91
8.2.120.0080.00026.35
8.2.110.0090.00020.40
8.2.100.0040.00817.84
8.2.90.0030.00617.97
8.2.80.0080.00018.05
8.2.70.0040.00418.05
8.2.60.0060.00318.16
8.2.50.0050.00218.16
8.2.40.0000.00820.60
8.2.30.0040.00419.39
8.2.20.0050.00318.08
8.2.10.0080.00018.14
8.2.00.0050.00318.03
8.1.270.0080.00022.22
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0100.01323.79
8.1.230.0120.00020.86
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0060.00318.51
8.1.160.0000.00818.88
8.1.150.0000.00820.73
8.1.140.0040.00417.79
8.1.130.0000.00718.96
8.1.120.0030.00417.54
8.1.110.0040.00417.38
8.1.100.0000.00717.38
8.1.90.0040.00717.50
8.1.80.0040.00417.47
8.1.70.0020.00517.53
8.1.60.0050.00317.57
8.1.50.0000.00817.45
8.1.40.0050.00417.55
8.1.30.0070.00417.76
8.1.20.0000.00817.57
8.1.10.0040.00417.64
8.1.00.0080.00017.57
8.0.300.0000.00820.03
8.0.290.0000.00816.63
8.0.280.0070.00018.48
8.0.270.0090.00017.21
8.0.260.0040.00417.30
8.0.250.0020.00517.04
8.0.240.0030.00417.05
8.0.230.0070.00016.98
8.0.220.0000.00816.99
8.0.210.0000.00716.98
8.0.200.0070.00017.04
8.0.190.0030.00516.98
8.0.180.0040.00416.90
8.0.170.0090.00017.02
8.0.160.0040.00417.03
8.0.150.0040.00417.01
8.0.140.0040.00716.94
8.0.130.0030.00313.46
8.0.120.0040.00416.98
8.0.110.0080.00017.05
8.0.100.0000.00716.80
8.0.90.0000.00716.80
8.0.80.0080.00716.94
8.0.70.0040.00416.80
8.0.60.0050.00317.05
8.0.50.0000.00716.87
8.0.30.0060.01317.18
8.0.20.0050.01417.40
8.0.10.0050.00217.00
8.0.00.0110.00716.85
7.4.330.0050.00016.77
7.4.320.0060.00016.54
7.4.300.0000.00716.55
7.4.290.0070.00016.44
7.4.280.0050.00416.48
7.4.270.0030.00616.51
7.4.260.0060.00316.49
7.4.250.0040.00416.51
7.4.240.0000.00816.65
7.4.230.0000.00716.29
7.4.220.0050.00316.73
7.4.210.0050.00916.57
7.4.200.0000.00716.57
7.4.160.0130.00716.64
7.4.140.0100.01117.86
7.4.130.0120.00616.43
7.4.120.0110.00816.57
7.4.110.0070.01016.48
7.4.100.0100.00716.43
7.4.90.0150.00916.76
7.4.80.0110.00919.39
7.4.70.0030.01616.77
7.4.60.0080.01016.51
7.4.50.0150.00416.33
7.4.40.0070.01016.63
7.4.00.0030.01215.16
7.3.330.0000.00513.46
7.3.320.0050.00013.42
7.3.310.0040.00416.52
7.3.300.0070.00016.50
7.3.290.0000.00716.47
7.3.280.0070.01016.47
7.3.260.0110.00616.47
7.3.240.0090.01016.42
7.3.230.0140.00416.64
7.3.210.0140.00416.60
7.3.200.0030.01316.40
7.3.190.0000.01816.48
7.3.180.0070.01716.42
7.3.170.0090.01316.59
7.3.160.0090.00616.44
7.3.120.0090.01215.14
7.3.110.0060.00914.89
7.3.100.0100.00314.93
7.3.90.0040.00414.99
7.3.80.0060.00314.92
7.3.70.0030.01414.89
7.3.60.0030.01014.98
7.3.50.0110.00014.75
7.3.40.0140.00014.80
7.3.30.0030.01014.80
7.3.20.0090.00316.78
7.3.10.0040.00716.77
7.3.00.0060.00616.87
7.2.330.0180.00316.54
7.2.320.0130.00716.58
7.2.310.0110.00716.70
7.2.300.0090.01616.63
7.2.290.0170.00716.76
7.2.250.0100.01015.07
7.2.240.0030.01715.13
7.2.230.0000.01415.38
7.2.220.0060.00315.11
7.2.210.0030.00615.27
7.2.200.0030.00615.01
7.2.190.0040.01115.11
7.2.180.0000.01214.88
7.2.170.0090.00614.80
7.2.80.0100.00316.46
7.2.60.0290.00416.99
7.2.40.4380.01117.83
7.2.30.2420.00917.72
7.2.20.1960.01217.76
7.2.10.2500.01117.62
7.2.00.3960.00817.95
7.1.330.0030.01315.71
7.1.320.0000.01315.68
7.1.310.0070.00715.79
7.1.300.0000.01115.41
7.1.290.0080.00415.93
7.1.280.0030.00915.75
7.1.270.0030.00715.80
7.1.260.0040.00716.02
7.1.200.0030.00915.84
7.1.160.0120.00916.32
7.1.150.3600.01016.57
7.1.140.0190.00916.59
7.1.130.3580.01016.70
7.1.120.1930.01016.63
7.1.110.1680.01015.84
7.1.100.1560.01215.94
7.1.90.5300.01016.11
7.1.80.3850.01015.71
7.1.70.3210.01015.27
7.1.60.3240.01433.18
7.1.50.2260.01732.91
7.1.40.2680.01332.65
7.1.30.2700.01232.64
7.1.20.2480.01732.86
7.1.10.2630.00914.74
7.1.00.1370.01114.85
7.0.290.0140.00816.64
7.0.270.3750.00916.40
7.0.260.0150.01116.77
7.0.250.0140.01116.14
7.0.240.0160.00715.98
7.0.230.3700.01116.12
7.0.220.3530.01116.06
7.0.210.3080.01414.76
7.0.200.3530.00915.13
7.0.190.2390.00914.98
7.0.180.0150.01214.40
7.0.170.0130.00914.57
7.0.160.1780.00814.43
7.0.150.1790.00714.28
7.0.140.0970.00814.61
7.0.130.0170.00814.65
7.0.120.0160.01314.62
7.0.110.2030.01414.59
7.0.100.2180.01114.59
7.0.90.1570.01414.44
7.0.80.1400.01014.65
7.0.70.1760.00914.43
7.0.60.0240.01414.48
7.0.50.0970.01214.58
7.0.40.0480.00914.62
7.0.30.0160.01114.83
7.0.20.1670.01314.56
7.0.10.0140.01514.66
7.0.00.0150.01114.66
5.6.300.0180.06020.86
5.6.290.0130.06020.88
5.6.280.0170.06420.92
5.6.270.0170.06820.87
5.6.260.0210.06320.79
5.6.250.0200.06820.93
5.6.240.0140.06420.86
5.6.230.0170.07220.81
5.6.220.0160.05820.80
5.6.210.0200.07520.62
5.6.200.0210.05720.78
5.6.190.0120.06720.80
5.6.180.0220.05920.74
5.6.170.0170.06420.80
5.6.160.0210.05520.81
5.6.150.0200.05620.82
5.6.140.0180.06920.87
5.6.130.0220.05420.86
5.6.120.0220.06320.67
5.6.110.0190.05720.75
5.6.100.0180.06020.80
5.6.90.0190.06520.75
5.6.80.0150.05620.22
5.6.70.0140.06020.18
5.6.60.0170.05820.10
5.6.50.0150.05720.19
5.6.40.0180.06420.08
5.6.30.0190.07620.16
5.6.20.0170.07220.13
5.6.10.0150.05820.17
5.6.00.0170.07020.26
5.5.380.0160.05817.51
5.5.370.0160.05517.61
5.5.360.0150.05817.50
5.5.350.0140.05617.54
5.5.340.0110.05918.05
5.5.330.0180.07217.71
5.5.320.0180.06418.05
5.5.310.0200.05518.05
5.5.300.0200.05417.96
5.5.290.0130.06018.04
5.5.280.0270.07418.02
5.5.270.0180.06218.10
5.5.260.0130.06318.01
5.5.250.0180.06017.59
5.5.240.0170.05317.36
5.5.230.0130.06017.43
5.5.220.0170.07617.40
5.5.210.0140.05517.08
5.5.200.0140.06517.30
5.5.190.0180.05517.29
5.5.180.0150.05517.29
5.5.160.0130.05617.39
5.5.150.0160.05417.44
5.5.140.0210.04717.37
5.5.130.0160.05517.12
5.5.120.0150.07217.16
5.5.110.0180.07217.34
5.5.100.0200.07217.38
5.5.90.0200.06817.25
5.5.80.0120.05717.29
5.5.70.0130.05316.95
5.5.60.0160.05416.99
5.5.50.0170.06217.02
5.5.40.0210.04617.27
5.5.30.0130.05217.01
5.5.20.0160.05217.27
5.5.10.0180.05217.20
5.5.00.0110.05917.00
5.4.450.0220.06719.27
5.4.440.0170.05619.47
5.4.430.0150.06519.31
5.4.420.0220.07719.46
5.4.410.0170.05919.23
5.4.400.0180.07519.05
5.4.390.0190.07318.91
5.4.380.0160.05319.14
5.4.370.0200.06418.99
5.4.360.0130.05919.14
5.4.350.0140.06118.98
5.4.340.0180.05518.99
5.4.320.0180.05318.83
5.4.310.0180.05018.86
5.4.300.0210.05618.98
5.4.290.0130.05518.91
5.4.280.0130.05619.09
5.4.270.0130.05619.14
5.4.260.0220.06419.00
5.4.250.0170.05419.04
5.4.240.0210.06218.98
5.4.230.0150.06319.06
5.4.220.0100.05818.99
5.4.210.0200.06819.24
5.4.200.0160.05819.02
5.4.190.0150.05518.98
5.4.180.0180.05019.04
5.4.170.0200.06319.00
5.4.160.0160.05219.02
5.4.150.0140.05519.03
5.4.140.0150.05416.40
5.4.130.0110.05016.72
5.4.120.0090.06716.69
5.4.110.0130.04916.42
5.4.100.0150.04716.64
5.4.90.0200.04116.64
5.4.80.0150.07216.63
5.4.70.0110.05116.62
5.4.60.0190.06916.49
5.4.50.0130.04716.38
5.4.40.0130.04916.65
5.4.30.0100.05216.61
5.4.20.0130.04816.54
5.4.10.0110.05216.61
5.4.00.0150.04616.14
5.3.290.0160.05114.68
5.3.280.0130.05214.47
5.3.270.0140.05914.79
5.3.260.0110.07214.66
5.3.250.0110.05214.87
5.3.240.0150.04914.66
5.3.230.0110.05614.82
5.3.220.0170.04714.84
5.3.210.0180.04914.84
5.3.200.0180.07014.75
5.3.190.0110.05414.83
5.3.180.0140.04914.44
5.3.170.0140.04814.83
5.3.160.0110.07614.84
5.3.150.0200.06714.83
5.3.140.0120.05714.86
5.3.130.0120.05614.75
5.3.120.0140.04914.62
5.3.110.0140.05114.74
5.3.100.0090.05414.34
5.3.90.0170.06914.21
5.3.80.0260.05214.01
5.3.70.0120.05214.32
5.3.60.0120.05014.12
5.3.50.0140.04714.03
5.3.40.0080.05614.16
5.3.30.0130.04713.95
5.3.20.0160.04613.98
5.3.10.0110.04913.77
5.3.00.0110.04913.69
5.2.170.0090.04111.02
5.2.160.0110.03911.32
5.2.150.0130.03911.34
5.2.140.0080.04511.26
5.2.130.0150.03611.14
5.2.120.0100.05311.36
5.2.110.0080.04310.98
5.2.100.0130.03711.06
5.2.90.0110.03811.29
5.2.80.0110.03911.27
5.2.70.0100.04211.29
5.2.60.0090.04211.26
5.2.50.0110.03911.25
5.2.40.0110.03711.22
5.2.30.0150.03711.25
5.2.20.0120.03911.17
5.2.10.0090.04410.74
5.2.00.0100.03911.01
5.1.60.0070.03610.30
5.1.50.0120.03410.20
5.1.40.0080.03510.18
5.1.30.0110.04810.55
5.1.20.0090.03810.54
5.1.10.0100.04510.36
5.1.00.0060.0379.95
5.0.50.0090.0278.77
5.0.40.0080.0278.63
5.0.30.0070.0428.49
5.0.20.0070.0268.48
5.0.10.0080.0298.48
5.0.00.0050.0428.48
4.4.90.0060.0228.48
4.4.80.0060.0228.48
4.4.70.0070.0208.48
4.4.60.0050.0228.48
4.4.50.0030.0248.48
4.4.40.0050.0348.48
4.4.30.0070.0208.48
4.4.20.0070.0208.48
4.4.10.0030.0258.48
4.4.00.0040.0358.48
4.3.110.0050.0228.48
4.3.100.0030.0238.48
4.3.90.0040.0228.48
4.3.80.0060.0328.48
4.3.70.0050.0218.48
4.3.60.0060.0198.48
4.3.50.0080.0268.48
4.3.40.0080.0308.48
4.3.30.0010.0268.48
4.3.20.0040.0218.48
4.3.10.0030.0238.48
4.3.00.0020.0238.48

preferences:
57.46 ms | 400 KiB | 5 Q