3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fake_solution="1100111010110111010010100101111101111011101101011100100001110011001110010011011011101100011100100010100011011000101011010001000010000000010110101111101001101000"; srand(0); //for me... in this server... the first rand() value after srand(0) gives "1804289383" for($i=0;$i<strlen($fake_solution);$i++){ $fake_solution[$i]=$fake_solution[$i]^(rand()%2); } echo($fake_solution);

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)
7.2.110.0090.00616.81
7.2.100.0030.00716.83
7.2.90.0040.00716.71
7.2.80.0130.00016.73
7.2.70.0030.01017.20
7.2.60.0100.00316.98
7.2.50.0060.00617.14
7.2.40.0060.00617.15
7.2.30.0100.00016.97
7.2.20.0050.00517.01
7.2.10.0080.00416.85
7.2.00.0110.00317.89
7.1.230.0050.00415.83
7.1.220.0030.00715.54
7.1.210.0030.01015.93
7.1.200.0070.00415.70
7.1.190.0070.00015.74
7.1.180.0040.00815.79
7.1.170.0060.00315.68
7.1.160.0070.00315.54
7.1.150.0080.00015.81
7.1.140.0000.01115.88
7.1.130.0090.00315.96
7.1.120.0080.00315.60
7.1.110.0030.00715.99
7.1.100.0070.00716.04
7.1.90.0040.00715.76
7.1.80.0000.01015.89
7.1.70.0030.00816.34
7.1.60.0070.00716.69
7.1.50.0050.01116.48
7.1.40.0060.00615.96
7.1.30.7700.00615.94
7.1.20.0130.00615.67
7.1.10.0120.00315.51
7.1.00.0080.03819.01
7.0.310.0070.00715.47
7.0.300.0060.00315.52
7.0.290.0030.00615.48
7.0.280.0050.00515.60
7.0.270.0050.00515.46
7.0.260.0030.00715.27
7.0.250.0100.00015.64
7.0.240.0030.00915.59
7.0.230.0090.00015.09
7.0.220.0040.00715.61
7.0.210.0000.00915.25
7.0.200.0030.01015.90
7.0.190.0050.00315.42
7.0.180.0110.00015.46
7.0.170.0090.00615.45
7.0.160.0080.00415.53
7.0.150.0130.00715.47
7.0.140.0100.00315.51
7.0.130.0100.00315.58
7.0.120.0000.01515.53
7.0.110.0070.00715.55
7.0.100.0300.04417.66
7.0.90.0290.04517.80
7.0.80.0250.04017.61
7.0.70.0270.04117.69
7.0.60.0290.04617.54
7.0.50.0330.04217.89
7.0.40.0120.04216.65
7.0.30.0070.04216.74
7.0.20.0060.04316.80
7.0.10.0110.04116.73
7.0.00.0030.04816.77
5.6.380.0040.00714.64
5.6.370.0030.01014.38
5.6.360.0070.00014.26
5.6.350.0000.01014.26
5.6.340.0060.00314.18
5.6.330.0040.00814.14
5.6.320.0050.00814.49
5.6.310.0060.00314.57
5.6.300.0050.00914.27
5.6.290.0070.00514.15
5.6.280.0070.02617.64
5.6.270.0070.01014.50
5.6.260.0070.00714.44
5.6.250.0070.04917.37
5.6.240.0070.04717.46
5.6.230.0130.03517.62
5.6.220.0070.04717.41
5.6.210.0070.04417.43
5.6.200.0100.04317.78
5.6.190.0100.04317.64
5.6.180.0160.03717.79
5.6.170.0090.04117.76
5.6.160.0140.03517.76
5.6.150.0080.04517.71
5.6.140.0090.04517.71
5.6.130.0140.03917.86
5.6.120.0160.03717.68
5.6.110.0060.04217.65
5.6.100.0100.04317.74
5.6.90.0100.03917.58
5.6.80.0060.04717.32
5.6.70.0080.04217.33
5.6.60.0140.04017.41
5.6.50.0030.04717.37
5.6.40.0070.04317.29
5.6.30.0050.04217.41
5.6.20.0100.03717.25
5.6.10.0080.03317.46
5.6.00.0050.02717.40
5.5.380.0080.04115.72
5.5.370.0060.04215.89
5.5.360.0100.03515.82
5.5.350.0110.03915.68
5.5.340.0130.03516.05
5.5.330.0110.03616.14
5.5.320.0090.04016.04
5.5.310.0170.03315.94
5.5.300.0110.03715.97
5.5.290.0110.03715.96
5.5.280.0070.04716.09
5.5.270.0040.03515.79
5.5.260.0060.04315.91
5.5.250.0070.04515.95
5.5.240.0080.04015.73
5.5.230.0110.03715.45
5.5.220.0070.03815.57
5.5.210.0070.04415.66
5.5.200.0090.03915.69
5.5.190.0110.02215.51
5.5.180.0100.04015.59
5.5.170.0110.00414.38
5.5.160.0050.02115.66
5.5.150.0100.02015.58
5.5.140.0060.02515.53
5.5.130.0080.02015.40
5.5.120.0020.02615.66
5.5.110.0110.01715.59
5.5.100.0100.01815.56
5.5.90.0090.02115.58
5.5.80.0080.02015.57
5.5.70.0050.03015.46
5.5.60.0060.02115.60
5.5.50.0060.02715.72
5.5.40.0050.02015.46
5.5.30.0100.03815.54
5.5.20.0030.02515.64
5.5.10.0050.03515.58
5.5.00.0050.02215.44
5.4.450.0060.04315.45
5.4.440.0140.03715.41
5.4.430.0070.03715.36
5.4.420.0110.03815.14
5.4.410.0110.02215.23
5.4.400.0120.03514.93
5.4.390.0050.04314.83
5.4.380.0090.03615.09
5.4.370.0100.03715.05
5.4.360.0090.04015.09
5.4.350.0080.03714.89
5.4.340.0060.04115.05
5.4.330.0060.00311.03
5.4.320.0060.02315.06
5.4.310.0070.03015.04
5.4.300.0030.02214.92
5.4.290.0070.02215.01
5.4.280.0070.02015.13
5.4.270.0050.02515.07
5.4.260.0080.01714.93
5.4.250.0050.02714.94
5.4.240.0050.02015.06
5.4.230.0020.02315.02
5.4.220.0050.04015.00
5.4.210.0070.01814.99
5.4.200.0020.03415.12
5.4.190.0060.02214.88
5.4.180.0080.03015.08
5.4.170.0030.02715.04
5.4.160.0020.02714.96
5.4.150.0050.02014.90
5.4.140.0050.01913.66
5.4.130.0060.02113.72
5.4.120.0020.02313.61
5.4.110.0070.01713.76
5.4.100.0040.02413.96
5.4.90.0080.01713.66
5.4.80.0000.02213.68
5.4.70.0050.02113.51
5.4.60.0030.02013.69
5.4.50.0040.02313.60
5.4.40.0060.02013.83
5.4.30.0060.01813.76
5.4.20.0020.02013.62
5.4.10.0030.02513.70
5.4.00.0030.02313.40
5.3.290.0100.01812.62
5.3.280.0040.02712.50
5.3.270.0100.03012.59
5.3.260.0040.02312.52
5.3.250.0080.02812.51
5.3.240.0040.02112.49
5.3.230.0090.02312.42
5.3.220.0040.02112.49
5.3.210.0090.02012.54
5.3.200.0070.02512.31
5.3.190.0040.02412.42
5.3.180.0060.02212.51
5.3.170.0070.02012.54
5.3.160.0020.02312.47
5.3.150.0020.02612.50
5.3.140.0090.02612.60
5.3.130.0060.01912.49
5.3.120.0050.02312.57
5.3.110.0010.02712.46
5.3.100.0040.03212.21
5.3.90.0040.03812.28
5.3.80.0020.02512.14
5.3.70.0070.01912.14
5.3.60.0050.02212.29
5.3.50.0040.02712.15
5.3.40.0050.02512.12
5.3.30.0030.01912.20
5.3.20.0050.02011.88
5.3.10.0110.03411.89
5.3.00.0060.03011.93
5.2.170.0040.03210.27
5.2.160.0050.01510.10
5.2.150.0060.01710.26
5.2.140.0060.02310.28
5.2.130.0020.02810.21
5.2.120.0040.03210.23
5.2.110.0090.03010.16
5.2.100.0050.03010.26
5.2.90.0080.03010.23
5.2.80.0080.03210.25
5.2.70.0020.03710.13
5.2.60.0070.02710.12
5.2.50.0060.03110.06
5.2.40.0070.02910.14
5.2.30.0060.03010.12
5.2.20.0030.02210.12
5.2.10.0030.02710.11
5.2.00.0030.02510.04
5.1.60.0080.0239.62
5.1.50.0060.0279.54
5.1.40.0030.0299.62
5.1.30.0080.0279.87
5.1.20.0030.0219.88
5.1.10.0040.0289.68
5.1.00.0070.0289.71
5.0.50.0020.0278.93
5.0.40.0070.0208.84
5.0.30.0010.0358.78
5.0.20.0060.0168.76
5.0.10.0090.0208.77
5.0.00.0020.0278.76
4.4.90.0040.0178.66
4.4.80.0060.0128.66
4.4.70.0030.0208.66
4.4.60.0000.0208.66
4.4.50.0010.0188.66
4.4.40.0040.0248.66
4.4.30.0000.0208.66
4.4.20.0050.0178.66
4.4.10.0020.0198.66
4.4.00.0050.0258.66
4.3.110.0000.0238.66
4.3.100.0040.0198.66
4.3.90.0030.0178.66
4.3.80.0050.0228.66
4.3.70.0000.0218.66
4.3.60.0030.0208.66
4.3.50.0030.0188.66
4.3.40.0040.0218.66
4.3.30.0020.0178.66
4.3.20.0070.0108.66
4.3.10.0030.0138.66
4.3.00.0040.0158.66

preferences:
32.6 ms | 400 KiB | 5 Q