3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Based on: // ------------------------------------------------------------------- quick script to grab a random BOFH excuse. - Peter Lowe // pgl@yoyo.org // http://pgl.yoyo.org/bofh/ credit to Jeff Ballard <ballard@NOSPAMcs.wisc.edu> for the original bofh excuse server: http://www.cs.wisc.edu/~ballard/bofh/ ------------------------------------------------------------------- [2004-08-28] odd: http://wiki.asleep.net/BOFHInetdPHP?show_comments=1 http://pgl.yoyo.org/bofh/ripoff.html (local copy) someone's ripped off this code and signed it with "author A.Sleep <a.sleep@asleep.net>" it's not exactly the same, but it's definitely based off this code. how strange. oh well. ------------------------------------------------------------------- // Secure, memorizable password generator */ $adj = dirname(__FILE__).'/adj.lst'; $noun = dirname(__FILE__).'/noun.lst'; for ($turn = 1; $turn <= $_POST["itr"]; $turn++){ if (!$adj = @file($adj)){ echo "couldn't read adjective file '$adj'"; } echo $adj[mt_rand(0, count($adj)-1)]; if (!$noun = @file($noun)){ echo "couldn't read adjective file '$noun'"; } echo $noun[mt_rand(0, count($noun)-1)]; } ?>

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.0.120.0130.00013.36
8.0.110.0080.00413.42
8.0.100.0120.00013.40
8.0.90.0080.00413.41
8.0.80.0030.00313.39
8.0.70.0000.00513.42
8.0.60.0000.00613.35
8.0.50.0000.00913.26
8.0.30.0080.00413.30
8.0.20.0090.00313.37
8.0.10.0060.00613.47
8.0.00.0050.00313.46
7.4.250.0040.00413.29
7.4.240.0090.00413.30
7.4.230.0140.00013.29
7.4.220.0100.00313.34
7.4.210.0100.00313.25
7.4.200.0060.00613.22
7.4.190.0090.00313.29
7.4.180.0060.00013.35
7.4.160.0040.00213.33
7.4.150.0040.00213.19
7.4.140.0060.00313.27
7.4.130.0050.00513.16
7.4.120.0090.00213.24
7.4.110.0110.00013.27
7.4.100.0070.00013.28
7.4.90.0060.00013.28
7.4.80.0030.00313.21
7.4.70.0050.00013.29
7.4.60.0000.00613.12
7.4.50.0040.00413.18
7.4.40.0080.00513.13
7.4.30.0070.00513.16
7.4.20.0120.00013.20
7.4.10.0070.00213.16
7.4.00.0110.00013.20
7.3.310.0000.00913.24
7.3.300.0030.00313.30
7.3.290.0100.00013.31
7.3.280.0120.00013.27
7.3.270.0050.00513.20
7.3.260.0050.00313.30
7.3.250.0020.00513.28
7.3.240.0060.00313.13
7.3.230.0040.00413.20
7.3.220.0030.00613.13
7.3.210.0040.00413.19
7.3.200.0040.00413.05
7.3.190.0060.00313.17
7.3.180.0000.00913.17
7.3.170.0070.00013.23
7.3.160.0030.00313.06
7.3.150.0030.00313.23
7.3.140.0020.00213.21
7.3.130.0000.00513.17
7.3.120.0050.00013.04
7.3.110.0020.00213.12
7.3.100.0060.00013.13
7.3.90.0000.00513.24
7.3.80.0050.00013.15
7.3.70.0050.00013.22
7.3.60.0030.00313.31
7.3.50.0000.00613.19
7.3.40.0060.00013.23
7.3.30.0000.00613.27
7.3.20.0030.00315.15
7.3.10.0060.00015.00
7.3.00.0000.00615.06
7.2.340.0120.00013.14
7.2.330.0100.00313.18
7.2.320.0100.00213.11
7.2.310.0100.00313.14
7.2.300.0100.00213.13
7.2.290.0090.00313.22
7.2.280.0040.00813.07
7.2.270.0070.00513.11
7.2.260.0000.01213.06
7.2.250.0040.00913.14
7.2.240.0080.00413.14
7.2.230.0100.00213.17
7.2.220.0120.00013.14
7.2.210.0000.01212.99
7.2.200.0070.00713.35
7.2.190.0090.00313.18
7.2.180.0100.00313.11
7.2.170.0040.00813.25
7.2.160.0040.00813.18
7.2.150.0080.00515.06
7.2.140.0120.00015.01
7.2.130.0200.00015.22
7.2.120.0100.00214.98
7.2.110.0120.00015.03
7.2.100.0090.00515.07
7.2.90.0040.00915.03
7.2.80.0080.00415.13
7.2.70.0120.00015.02
7.2.60.0090.00315.07
7.2.50.0100.00315.03
7.2.40.0060.00615.03
7.2.30.0090.00414.92
7.2.20.0080.00514.98
7.2.10.0060.00615.16
7.2.00.0130.00015.01
7.1.330.0090.00314.18
7.1.320.0120.00014.05
7.1.310.0110.00014.05
7.1.300.0120.00014.17
7.1.290.0000.01313.98
7.1.280.0100.00214.21
7.1.270.0040.00713.97
7.1.260.0120.00314.05
7.1.250.0040.00814.07
7.1.240.0070.00414.00
7.1.230.0060.00614.02
7.1.220.0090.00214.28
7.1.210.0120.00014.00
7.1.200.0060.00614.20
7.1.190.0100.00314.05
7.1.180.0100.00214.04
7.1.170.0000.01114.09
7.1.160.0120.00014.09
7.1.150.0120.00013.95
7.1.140.0090.00313.96
7.1.130.0120.00014.04
7.1.120.0060.00614.16
7.1.110.0040.00814.07
7.1.100.0100.00214.05
7.1.90.0100.00314.12
7.1.80.0110.00014.19
7.1.70.0050.00515.57
7.1.60.0120.00716.78
7.1.50.0070.01015.47
7.1.40.0090.00314.14
7.1.30.0120.00014.04
7.1.20.0080.00414.13
7.1.10.0120.00014.02
7.1.00.0040.04118.26
7.0.330.0060.00613.84
7.0.320.0090.00213.95
7.0.310.0090.00214.00
7.0.300.0080.00413.88
7.0.290.0090.00314.12
7.0.280.0090.00214.00
7.0.270.0080.00413.92
7.0.260.0080.00413.84
7.0.250.0100.00214.19
7.0.240.0080.00314.24
7.0.230.0090.00314.20
7.0.220.0090.00313.94
7.0.210.0120.00014.14
7.0.200.0020.00815.44
7.0.190.0090.00214.16
7.0.180.0120.00014.09
7.0.170.0080.00414.11
7.0.160.0060.00614.05
7.0.150.0060.00613.99
7.0.140.0080.03718.08
7.0.130.0110.00014.08
7.0.120.0090.00314.21
7.0.110.0130.00313.88
7.0.100.0050.00514.09
7.0.90.0060.00613.97
7.0.80.0080.00413.93
7.0.70.0090.03717.87
7.0.60.0050.04617.87
7.0.50.0070.04218.04
7.0.40.0090.04217.02
7.0.30.0080.04017.05
7.0.20.0040.04517.07
7.0.10.0040.04417.06
7.0.00.0070.04016.99
5.6.400.0040.00712.59
5.6.390.0110.00012.56
5.6.380.0110.00012.76
5.6.370.0110.00012.51
5.6.360.0040.00812.64
5.6.350.0050.00512.61
5.6.340.0070.00412.66
5.6.330.0070.00312.52
5.6.320.0060.00612.43
5.6.310.0120.00012.73
5.6.300.0000.01112.41
5.6.290.0080.00412.61
5.6.280.0040.04016.88
5.6.270.0120.00012.46
5.6.260.0070.00412.57
5.6.250.0120.00012.45
5.6.240.0080.00312.65
5.6.230.0050.00512.81
5.6.220.0080.03716.63
5.6.210.0080.04016.77
5.6.200.0060.03516.95
5.6.190.0050.04616.95
5.6.180.0030.05017.05
5.6.170.0040.02716.89
5.6.160.0040.03016.90
5.6.150.0060.02316.83
5.6.140.0060.02316.93
5.6.130.0020.02516.80
5.6.120.0070.01716.97
5.6.110.0060.02216.81
5.6.100.0040.01916.79
5.6.90.0020.02216.83
5.6.80.0030.01916.48
5.6.70.0040.01916.52
5.6.60.0030.02316.49
5.6.50.0050.01716.57
5.6.40.0050.02016.57
5.6.30.0040.02016.56
5.6.20.0050.02716.45
5.6.10.0080.01716.51
5.6.00.0050.01716.62
5.5.380.0080.00312.55
5.5.370.0070.00412.86
5.5.360.0050.03816.45
5.5.350.0070.03016.44
5.5.340.0040.04516.63
5.5.330.0110.04016.65
5.5.320.0090.04016.74
5.5.310.0040.02616.78
5.5.300.0060.02216.65
5.5.290.0030.02416.67
5.5.280.0070.02016.66
5.5.270.0040.01916.58
5.5.260.0050.02316.67
5.5.250.0040.01816.77
5.5.240.0050.01716.53
5.5.230.0040.02716.37
5.5.220.0040.01816.47
5.5.210.0030.02616.49
5.5.200.0030.02116.19
5.5.190.0090.01716.26
5.5.180.0030.02916.31
5.5.170.0070.00412.61
5.5.160.0070.01516.27
5.5.150.0000.02516.12
5.5.140.0050.01716.30
5.5.130.0050.01716.29
5.5.120.0070.01816.17
5.5.110.0040.01816.23
5.5.100.0050.01816.40
5.5.90.0070.02316.20
5.5.80.0040.01816.22
5.5.70.0050.01716.35
5.5.60.0050.02116.33
5.5.50.0030.01816.31
5.5.40.0060.02216.41
5.5.30.0060.01816.35
5.5.20.0050.01716.39
5.5.10.0050.01716.28
5.5.00.0050.01716.31
5.4.450.0070.01815.90
5.4.440.0030.02215.90
5.4.430.0020.02016.07
5.4.420.0060.01615.97
5.4.410.0040.01815.97
5.4.400.0040.01715.78
5.4.390.0040.01815.68
5.4.380.0020.01915.78
5.4.370.0070.01715.83
5.4.360.0050.01815.73
5.4.350.0070.02215.77
5.4.340.0030.02815.87
5.4.330.0100.00012.63
5.4.320.0030.02215.80
5.4.310.0070.02315.83
5.4.300.0020.01915.86
5.4.290.0040.01715.82
5.4.280.0030.01915.82
5.4.270.0050.01515.83
5.4.260.0050.01715.75
5.4.250.0060.01515.79
5.4.240.0070.02015.76
5.4.230.0030.02315.65
5.4.220.0070.01815.71
5.4.210.0070.01715.58
5.4.200.0050.01715.54
5.4.190.0060.01715.63
5.4.180.0030.01815.71
5.4.170.0060.01815.67
5.4.160.0030.01915.84
5.4.150.0040.01815.75
5.4.140.0070.01314.35
5.4.130.0030.01714.24
5.4.120.0080.01714.42
5.4.110.0040.02214.40
5.4.100.0040.03914.38
5.4.90.0080.01814.30
5.4.80.0070.03514.43
5.4.70.0090.03714.48
5.4.60.0070.03014.31
5.4.50.0070.03614.37
5.4.40.0040.02414.50
5.4.30.0070.02814.41
5.4.20.0050.02814.50
5.4.10.0050.04014.41
5.4.00.0030.03913.93
5.3.290.0080.01813.85
5.3.280.0030.01713.85
5.3.270.0030.01713.75
5.3.260.0050.01713.77
5.3.250.0070.01713.84
5.3.240.0040.01713.72
5.3.230.0030.02013.93
5.3.220.0030.02213.78
5.3.210.0060.01713.79
5.3.200.0070.03613.89
5.3.190.0050.03513.99
5.3.180.0040.03913.86
5.3.170.0070.03914.02
5.3.160.0070.03614.04
5.3.150.0030.03814.05
5.3.140.0050.04013.81
5.3.130.0060.04113.95
5.3.120.0050.04013.79
5.3.110.0040.03513.79
5.3.100.0050.03413.91
5.3.90.0050.03913.85
5.3.80.0030.04113.75
5.3.70.0050.03013.89
5.3.60.0040.03813.95
5.3.50.0090.03513.90
5.3.40.0070.03713.83
5.3.30.0090.02813.82
5.3.20.0030.03313.76
5.3.10.0030.02813.70
5.3.00.0090.03313.68
5.2.170.0080.03013.43
5.2.160.0040.03413.32
5.2.150.0070.03013.38
5.2.140.0060.02813.40
5.2.130.0080.02713.32
5.2.120.0050.02113.42
5.2.110.0050.03213.45
5.2.100.0050.02813.34
5.2.90.0120.02413.43
5.2.80.0020.02913.40
5.2.70.0020.03613.29
5.2.60.0060.03413.30
5.2.50.0080.03013.39
5.2.40.0050.03313.33
5.2.30.0030.03313.29
5.2.20.0050.03113.31
5.2.10.0040.03113.14
5.2.00.0030.03013.12
5.1.60.0050.02812.76
5.1.50.0070.02512.82
5.1.40.0090.02012.99
5.1.30.0050.02913.01
5.1.20.0010.02412.90
5.1.10.0060.02712.83
5.1.00.0020.03212.91
5.0.50.0020.02312.63
5.0.40.0020.02312.63
5.0.30.0030.03312.63
5.0.20.0050.02212.63
5.0.10.0010.02112.63
5.0.00.0050.02512.63
4.4.90.0030.01512.63
4.4.80.0020.02012.63
4.4.70.0010.01812.63
4.4.60.0030.01812.63
4.4.50.0020.01712.63
4.4.40.0020.01812.63
4.4.30.0020.01812.63
4.4.20.0020.01312.63
4.4.10.0020.01712.63
4.4.00.0020.02812.63
4.3.110.0020.01812.63
4.3.100.0030.01812.63
4.3.90.0000.01712.63
4.3.80.0040.02312.63
4.3.70.0000.01712.63
4.3.60.0000.01912.63
4.3.50.0020.01812.63
4.3.40.0040.02512.63
4.3.30.0020.01512.63
4.3.20.0050.01312.63
4.3.10.0000.01512.63
4.3.00.0030.01312.63

preferences:
41.05 ms | 401 KiB | 5 Q