3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "hello, this is evening, and this is SO"; $key = 21344124124214124324512124124; function encrypt( $text, $xorKey ) { $xored = ''; $chars = str_split( $text ); $i = 0; while ( $i < count( $chars ) ) { $xored .= chr( ord( $chars[$i] ) ^ $xorKey ); $i++; } return $xored; } $encrypted = encrypt($string, $key); echo $encrypted; // hello, this is evening, and this is SO

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.0080.00818.81
8.3.50.0090.01122.18
8.3.40.0110.00418.95
8.3.30.0040.01118.96
8.3.20.0080.00018.74
8.3.10.0080.00021.04
8.3.00.0060.00323.69
8.2.180.0110.00718.21
8.2.170.0110.01122.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00926.16
8.2.120.0040.00421.03
8.2.110.0030.00622.27
8.2.100.0110.00018.09
8.2.90.0040.00419.34
8.2.80.0040.00417.97
8.2.70.0030.00517.75
8.2.60.0000.00917.80
8.2.50.0000.00818.10
8.2.40.0000.00818.41
8.2.30.0060.00319.58
8.2.20.0020.00517.84
8.2.10.0060.00317.89
8.2.00.0000.00817.81
8.1.280.0000.01425.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.20
8.1.230.0090.00317.77
8.1.220.0000.00817.78
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0060.00317.23
8.1.180.0050.00318.10
8.1.170.0080.00018.68
8.1.160.0060.00318.84
8.1.150.0000.00818.76
8.1.140.0050.00217.54
8.1.130.0080.00017.77
8.1.120.0030.00517.54
8.1.110.0070.00017.44
8.1.100.0070.00017.46
8.1.90.0040.00417.53
8.1.80.0000.00717.51
8.1.70.0030.00317.52
8.1.60.0080.00417.54
8.1.50.0000.00717.53
8.1.40.0040.00417.64
8.1.30.0000.00817.59
8.1.20.0040.00417.66
8.1.10.0040.00417.64
8.1.00.0000.00817.58
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0070.00018.45
8.0.270.0030.00317.30
8.0.260.0040.00416.86
8.0.250.0080.00017.02
8.0.240.0000.00716.99
8.0.230.0000.00716.88
8.0.220.0040.00416.90
8.0.210.0070.00016.94
8.0.200.0040.00417.00
8.0.190.0000.00717.00
8.0.180.0030.00317.00
8.0.170.0000.00716.93
8.0.160.0040.00417.09
8.0.150.0040.00416.93
8.0.140.0050.00216.88
8.0.130.0000.00613.39
8.0.120.0040.00416.91
8.0.110.0070.00016.92
8.0.100.0040.00416.81
8.0.90.0060.00316.85
8.0.80.0040.01217.00
8.0.70.0000.00716.88
8.0.60.0030.00516.85
8.0.50.0030.00516.96
8.0.30.0090.00917.11
8.0.20.0100.01017.40
8.0.10.0040.00416.92
8.0.00.0100.01016.82
7.4.330.0030.00314.90
7.4.320.0060.00016.63
7.4.300.0000.00616.66
7.4.290.0040.00416.48
7.4.280.0070.00016.66
7.4.270.0070.00016.59
7.4.260.0030.00313.36
7.4.250.0080.00016.66
7.4.240.0080.00016.44
7.4.230.0000.00716.33
7.4.220.0160.00316.61
7.4.210.0100.00916.63
7.4.200.0050.00216.67
7.4.190.0000.00716.84
7.4.160.0060.01016.74
7.4.150.0090.00917.40
7.4.140.0060.01117.86
7.4.130.0050.01216.62
7.4.120.0080.00816.63
7.4.110.0130.00316.54
7.4.100.0030.01416.54
7.4.90.0160.00416.70
7.4.80.0030.01419.39
7.4.70.0070.00816.54
7.4.60.0120.00416.59
7.4.50.0070.00016.75
7.4.40.0090.00622.77
7.4.30.0140.00716.50
7.4.00.0120.00515.12
7.3.330.0000.00513.36
7.3.320.0050.00013.24
7.3.310.0030.00316.39
7.3.300.0000.00716.34
7.3.290.0160.00316.31
7.3.280.0090.00816.37
7.3.270.0090.00917.40
7.3.260.0070.01118.24
7.3.250.0110.00916.67
7.3.240.0060.01316.37
7.3.230.0110.00616.48
7.3.210.0110.00616.68
7.3.200.0130.00919.39
7.3.190.0090.01216.39
7.3.180.0120.00316.64
7.3.170.0060.01016.70
7.3.160.0190.00316.48
7.3.120.0070.00914.83
7.3.110.0090.00315.09
7.3.100.0030.00814.85
7.3.90.0080.00614.98
7.3.80.0090.00614.67
7.3.70.0060.00814.84
7.3.60.0000.01514.97
7.3.50.0070.00714.87
7.3.40.0060.00614.84
7.3.30.0090.00314.82
7.3.20.0030.01016.63
7.3.10.0120.00316.69
7.3.00.0030.00616.48
7.2.330.0070.01016.92
7.2.320.0120.00616.74
7.2.310.0150.00616.90
7.2.300.0130.00316.82
7.2.290.0070.01016.88
7.2.250.0090.00915.23
7.2.240.0100.01015.26
7.2.230.0030.00915.15
7.2.220.0070.00314.99
7.2.210.0060.01015.02
7.2.200.0050.00515.14
7.2.190.0000.01614.98
7.2.180.0060.00315.12
7.2.170.0120.00315.25
7.1.330.0000.01315.95
7.1.320.0080.00615.86
7.1.310.0090.00615.94
7.1.300.0170.00015.67
7.1.290.0030.01015.77
7.1.280.0030.00916.01
7.1.270.0090.00415.51
7.1.260.0000.01115.90
7.1.70.0000.01017.25
7.1.60.0000.01117.34
7.1.50.0060.00617.20
7.1.40.0000.01116.59
7.1.30.0030.00916.65
7.1.20.0080.00416.72
7.1.10.0030.01416.68
7.1.00.0070.00716.70
7.0.200.0000.00716.78
7.0.190.0000.00816.86
7.0.180.0000.01216.32
7.0.170.0070.00716.38
7.0.160.0000.00916.18
7.0.150.0020.00516.23
7.0.140.0060.01016.70
7.0.130.0030.01216.66
7.0.120.0030.00716.62
7.0.110.0030.00616.55
7.0.100.0000.01316.32
7.0.90.0040.00816.46
7.0.80.0050.00316.58
7.0.70.0050.00316.49
7.0.60.0040.00416.03
7.0.50.0000.01316.64
7.0.40.0040.00415.07
7.0.30.0030.00715.07
7.0.20.0030.00515.07
7.0.10.0030.00515.07
7.0.00.0030.00515.07
5.6.300.0030.06920.83
5.6.290.0030.07820.70
5.6.280.0030.04320.91
5.6.270.0170.04120.94
5.6.260.0030.04420.93
5.6.250.0070.05221.02
5.6.240.0000.04520.88
5.6.230.0000.04520.82
5.6.220.0130.03621.06
5.6.210.0030.05720.99
5.6.200.0060.05120.86
5.6.190.0030.04120.89
5.6.180.0000.08520.81
5.6.170.0060.03821.02
5.6.160.0070.03920.87
5.6.150.0030.04320.87
5.6.140.0030.04420.85
5.6.130.0030.04420.87
5.6.120.0070.04521.01
5.6.110.0070.04620.88
5.6.100.0030.04720.95
5.6.90.0040.04220.97
5.6.80.0100.03620.36
5.6.70.0000.04820.39
5.6.60.0130.04020.23
5.6.50.0100.04520.36
5.6.40.0100.03520.34
5.6.30.0060.05420.22
5.6.20.0070.03520.13
5.6.10.0070.05820.41
5.6.00.0120.03120.20
5.5.380.0070.07817.62
5.5.370.0030.03917.57
5.5.360.0000.05317.57
5.5.350.0130.03717.66
5.5.340.0000.04718.10
5.5.330.0030.04117.70
5.5.320.0030.07818.09
5.5.310.0070.06018.12
5.5.300.0030.04218.09
5.5.290.0030.04418.00
5.5.280.0030.05218.00
5.5.270.0070.03718.03
5.5.260.0000.04317.95
5.5.250.0000.04817.99
5.5.240.0040.04217.48
5.5.230.0000.04217.50
5.5.220.0100.03417.41
5.5.210.0000.04517.38
5.5.200.0100.03917.38
5.5.190.0070.04717.21
5.5.180.0030.04017.44
5.5.160.0030.03817.44
5.5.150.0070.03717.43
5.5.140.0030.04017.43
5.5.130.0060.03417.47
5.5.120.0000.08517.44
5.5.110.0040.03917.35
5.5.100.0030.03717.38
5.5.90.0070.03417.34
5.5.80.0100.03317.33
5.5.70.0030.03917.43
5.5.60.0060.07517.34
5.5.50.0000.03917.37
5.5.40.0000.04116.94
5.5.30.0000.07017.38
5.5.20.0100.07016.94
5.5.10.0100.03717.33
5.5.00.0030.07317.38
5.4.450.0030.04119.49
5.4.440.0030.04519.28
5.4.430.0090.04119.56
5.4.420.0030.03819.53
5.4.410.0070.03419.41
5.4.400.0040.03619.00
5.4.390.0070.03919.09
5.4.380.0100.03019.02
5.4.370.0070.06318.91
5.4.360.0070.03818.98
5.4.350.0000.04119.04
5.4.340.0030.03719.17
5.4.320.0060.04218.99
5.4.310.0030.03819.12
5.4.300.0030.03918.91
5.4.290.0030.03618.95
5.4.280.0070.05719.23
5.4.270.0100.04119.06
5.4.260.0030.04019.14
5.4.250.0130.05219.23
5.4.240.0030.03619.23
5.4.230.0100.04318.98
5.4.220.0000.05719.21
5.4.210.0100.07419.06
5.4.200.0100.05718.95
5.4.190.0170.04618.96
5.4.180.0030.07219.16
5.4.170.0100.04019.20
5.4.160.0070.05319.18
5.4.150.0030.04019.05
5.4.140.0030.07116.59
5.4.130.0130.06016.48
5.4.120.0100.06816.69
5.4.110.0030.06116.76
5.4.100.0030.06916.76
5.4.90.0030.03816.76
5.4.80.0000.03816.74
5.4.70.0000.07616.71
5.4.60.0070.05916.61
5.4.50.0060.05216.72
5.4.40.0070.05716.52
5.4.30.0000.04716.47
5.4.20.0100.03316.48
5.4.10.0070.03416.59
5.4.00.0000.04115.88
5.3.290.0030.04915.07
5.3.280.0000.04715.07
5.3.270.0030.06415.07
5.3.260.0000.05315.07
5.3.250.0000.07215.07
5.3.240.0000.07815.07
5.3.230.0000.05115.07
5.3.220.0000.07515.07
5.3.210.0030.03815.07
5.3.200.0000.04915.07
5.3.190.0000.04115.07
5.3.180.0070.07415.07
5.3.170.0070.07315.07
5.3.160.0130.06115.07
5.3.150.0070.07715.07
5.3.140.0030.03615.07
5.3.130.0000.08215.07
5.3.120.0060.06515.07
5.3.110.0000.05515.07
5.3.100.0030.03615.07
5.3.90.0030.03815.07
5.3.80.0000.03815.07
5.3.70.0030.03815.07
5.3.60.0070.03115.07
5.3.50.0000.04515.07
5.3.40.0030.03415.07
5.3.30.0100.03715.07
5.3.20.0030.06715.07
5.3.10.0070.04515.07
5.3.00.0030.03415.07
5.2.170.0030.02915.07
5.2.160.0030.03315.07
5.2.150.0030.02815.07
5.2.140.0000.03215.07
5.2.130.0030.02815.07
5.2.120.0000.03315.07
5.2.110.0030.02915.07
5.2.100.0000.04115.07
5.2.90.0030.02915.07
5.2.80.0090.02815.07
5.2.70.0000.03315.07
5.2.60.0030.03815.07
5.2.50.0030.06915.07
5.2.40.0030.03315.07
5.2.30.0070.02515.07
5.2.20.0030.02715.07
5.2.10.0030.02615.07
5.2.00.0030.02715.07
5.1.60.0030.02515.07
5.1.50.0000.02615.07
5.1.40.0070.02315.07
5.1.30.0000.03115.07
5.1.20.0030.02715.07
5.1.10.0070.02215.07
5.1.00.0070.02115.07
5.0.50.0000.02815.07
5.0.40.0000.02115.07
5.0.30.0000.03315.07
5.0.20.0030.01915.07
5.0.10.0030.03515.07
5.0.00.0000.04015.07
4.4.90.0000.01615.07
4.4.80.0100.02615.07
4.4.70.0000.01715.07
4.4.60.0030.02715.07
4.4.50.0030.01615.07
4.4.40.0000.03115.07
4.4.30.0030.03315.07
4.4.20.0030.01515.07
4.4.10.0000.01815.07
4.4.00.0030.02615.07
4.3.110.0030.01715.07
4.3.100.0000.01615.07
4.3.90.0000.02415.07
4.3.80.0030.03915.07
4.3.70.0000.01915.07
4.3.60.0000.02015.07
4.3.50.0000.01715.07
4.3.40.0070.04715.07
4.3.30.0000.01915.07
4.3.20.0060.01515.07
4.3.10.0000.01715.07
4.3.00.0000.01715.07

preferences:
42.36 ms | 401 KiB | 5 Q