3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PassphraseException extends Exception {} class PassphraseTooShortException extends PassphraseException {} class PassphraseTooLongException extends PassphraseException {} class PassphraseRequiresLetterException extends PassphraseException {} class PassphraseRequiresNumberOrSpecialException extends PassphraseException {} class Passphrase { static function validate($passphrase) { $len = strlen($passphrase); if ($len < 15) { throw new PassphraseTooShortException('Jesus fucking christ, read the requirements you fuck!'); } if ($len > 140) { throw new PassphraseTooLongException('Are you fucking kidding me? How are you going to remember this shit...'); } $no_alpha = str_replace(str_split('abcdefghijklmnopqrstuvwxyz'), '', strtolower($passphrase)); echo $no_alpha;exit; if ($no_alpha === $passphrase) { throw new PassphraseRequiresLetterException('Fucking idiot.'); } $lowerpass = strtolower($passphrase); if ($no_alpha === '') { throw new PassphraseRequiresNumberOrSpecialException('You fucking fuck, fuck you fucking fucker fuckface fuck.'); } } static function isValid($passphrase) { try { static::validate($passphrase); } catch (PassphraseException $e) { return false; } return true; } } Passphrase::validate('qt3point141592653589793238');

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.0130.00618.31
8.3.50.0120.01121.92
8.3.40.0150.00418.84
8.3.30.0160.00018.72
8.3.20.0080.00018.68
8.3.10.0040.00421.02
8.3.00.0030.00619.67
8.2.180.0180.00016.88
8.2.170.0100.01022.96
8.2.160.0060.01220.34
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00021.04
8.2.110.0090.00022.27
8.2.100.0040.00817.91
8.2.90.0000.00919.21
8.2.80.0070.00019.42
8.2.70.0000.00817.63
8.2.60.0060.00317.68
8.2.50.0000.00818.07
8.2.40.0000.00718.28
8.2.30.0000.00719.51
8.2.20.0000.00917.80
8.2.10.0040.00417.78
8.2.00.0030.00617.68
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00922.52
8.1.230.0000.01120.88
8.1.220.0000.00818.77
8.1.210.0030.00519.03
8.1.200.0000.00917.35
8.1.190.0000.00717.50
8.1.180.0090.00018.10
8.1.170.0050.00318.51
8.1.160.0000.00718.89
8.1.150.0040.00418.62
8.1.140.0050.00217.53
8.1.130.0030.00317.91
8.1.120.0030.00317.29
8.1.110.0040.00417.35
8.1.100.0070.00017.42
8.1.90.0030.00317.41
8.1.80.0070.00017.25
8.1.70.0030.00317.36
8.1.60.0040.00817.59
8.1.50.0040.00417.46
8.1.40.0070.00017.43
8.1.30.0040.00417.50
8.1.20.0040.00417.51
8.1.10.0060.00317.55
8.1.00.0040.00417.52
8.0.300.0030.00319.94
8.0.290.0000.00716.91
8.0.280.0000.00718.38
8.0.270.0030.00317.27
8.0.260.0000.00716.77
8.0.250.0040.00317.06
8.0.240.0050.00317.06
8.0.230.0070.00016.90
8.0.220.0000.00716.91
8.0.210.0000.00716.97
8.0.200.0050.00216.86
8.0.190.0000.00817.02
8.0.180.0070.00016.96
8.0.170.0030.00516.93
8.0.160.0040.00416.96
8.0.150.0060.00316.85
8.0.140.0060.00316.88
8.0.130.0030.00313.30
8.0.120.0040.00416.98
8.0.110.0080.00016.81
8.0.100.0000.00716.85
8.0.90.0000.00716.94
8.0.80.0070.01016.89
8.0.70.0000.00816.91
8.0.60.0000.00716.84
8.0.50.0040.00416.92
8.0.30.0120.00717.13
8.0.20.0110.00717.42
8.0.10.0050.00316.94
8.0.00.0070.01116.85
7.4.330.0000.00516.81
7.4.320.0000.00616.55
7.4.300.0000.00616.62
7.4.290.0030.00316.54
7.4.280.0030.00316.63
7.4.270.0000.00716.54
7.4.260.0000.00613.17
7.4.250.0000.00816.38
7.4.240.0050.00316.57
7.4.230.0030.00316.41
7.4.220.0090.00616.59
7.4.210.0070.01116.57
7.4.200.0000.00716.66
7.4.190.0080.00016.76
7.4.160.0060.00916.51
7.4.150.0070.01317.40
7.4.140.0050.01117.86
7.4.130.0090.01416.56
7.4.120.0050.01116.46
7.4.110.0060.01516.58
7.4.100.0140.00316.57
7.4.90.0090.00916.43
7.4.80.0060.01519.39
7.4.70.0060.00916.46
7.4.60.0060.01016.57
7.4.50.0050.00316.46
7.4.40.0070.01122.77
7.4.30.0200.00316.64
7.4.10.0160.00015.27
7.4.00.0050.01314.77
7.3.330.0000.00613.36
7.3.320.0030.00313.19
7.3.310.0040.00416.34
7.3.300.0030.00316.20
7.3.290.0100.01016.37
7.3.280.0100.00916.37
7.3.270.0060.01017.40
7.3.260.0100.00818.24
7.3.250.0140.00316.45
7.3.240.0130.00316.54
7.3.230.0150.00316.39
7.3.210.0090.00816.33
7.3.200.0120.00619.39
7.3.190.0060.01016.30
7.3.180.0100.01016.48
7.3.170.0100.00716.40
7.3.160.0170.00616.48
7.3.130.0110.00714.77
7.3.120.0030.01414.71
7.3.110.0060.01214.65
7.3.100.0030.01014.98
7.3.90.0000.01414.84
7.3.80.0070.00414.77
7.3.70.0060.00914.75
7.3.60.0040.00714.79
7.3.50.0100.00314.78
7.3.40.0040.01114.50
7.3.30.0040.01114.66
7.3.20.0080.00416.65
7.3.10.0060.00616.56
7.3.00.0030.01316.65
7.2.330.0110.00716.63
7.2.320.0130.00716.93
7.2.310.0130.00616.41
7.2.300.0060.01616.41
7.2.290.0050.01116.53
7.2.260.0060.00615.00
7.2.250.0100.01015.35
7.2.240.0060.00915.25
7.2.230.0070.01015.22
7.2.220.0070.00715.28
7.2.210.0000.01014.88
7.2.200.0100.00714.93
7.2.190.0060.00915.08
7.2.180.0000.01414.93
7.2.170.0030.01314.89
7.2.160.0030.01214.84
7.2.150.0030.00616.68
7.2.140.0050.00516.91
7.2.130.0060.00916.80
7.2.120.0110.00516.83
7.2.110.0020.01216.93
7.2.100.0100.00616.92
7.2.90.0040.00916.98
7.2.80.0020.01216.78
7.2.70.0020.00916.88
7.2.60.0050.01217.02
7.2.50.0020.01216.88
7.2.40.0050.00517.00
7.2.30.0090.00616.79
7.2.20.0040.00816.85
7.2.10.0040.00916.88
7.2.00.0090.00717.78
7.1.330.0080.00515.55
7.1.320.0000.01815.61
7.1.310.0070.00715.62
7.1.300.0060.00815.75
7.1.290.0030.00615.86
7.1.280.0060.00915.74
7.1.270.0000.01115.88
7.1.260.0030.00715.53
7.1.250.0020.01015.51
7.1.240.0070.00415.86
7.1.230.0070.00315.61
7.1.220.0060.00315.76
7.1.210.0040.00815.59
7.1.200.0040.00715.84
7.1.190.0050.00315.76
7.1.180.0060.01315.95
7.1.170.0100.00715.55
7.1.160.0140.00015.97
7.1.150.0000.01315.86
7.1.140.0060.00315.81
7.1.130.0070.00415.79
7.1.120.0080.00815.95
7.1.110.0030.01015.87
7.1.100.0520.00515.88
7.1.90.0070.00715.98
7.1.80.0060.00915.89
7.1.70.0000.01216.46
7.1.60.0050.01017.58
7.1.50.0050.01016.37
7.1.40.0030.01015.62
7.1.30.0000.01315.62
7.1.20.0090.00015.72
7.1.10.0000.00915.93
7.1.00.0020.02519.17
7.0.330.0100.00315.52
7.0.320.0030.01015.47
7.0.310.0070.00715.44
7.0.300.0090.00015.57
7.0.290.0050.00515.47
7.0.280.0060.00615.29
7.0.270.0070.00715.23
7.0.260.0060.00615.12
7.0.250.0070.00715.37
7.0.240.0120.00015.55
7.0.230.0060.00915.67
7.0.220.0110.00315.31
7.0.210.0110.00315.50
7.0.200.0010.00616.12
7.0.190.0060.00615.34
7.0.180.0140.00015.45
7.0.170.0070.00715.59
7.0.160.0000.01115.46
7.0.150.0060.00315.41
7.0.140.0030.04018.69
7.0.130.0000.00915.35
7.0.120.0040.01115.61
7.0.110.0030.00615.32
7.0.100.0120.03817.76
7.0.90.0140.04417.73
7.0.80.0070.04517.57
7.0.70.0000.04717.76
7.0.60.0250.03917.73
7.0.50.0070.03517.85
7.0.40.0070.03816.80
7.0.30.0090.02016.81
7.0.20.0040.02416.81
7.0.10.0080.02516.63
7.0.00.0080.04416.76
5.6.400.0000.01414.63
5.6.390.0030.01014.73
5.6.380.0000.01714.43
5.6.370.0040.00714.38
5.6.360.0070.00714.43
5.6.350.0040.00414.53
5.6.340.0080.00614.42
5.6.330.0060.00614.42
5.6.320.0000.01114.33
5.6.310.0070.00714.35
5.6.300.0090.00014.41
5.6.290.0070.00714.45
5.6.280.0020.04317.57
5.6.270.0060.00314.46
5.6.260.0070.00714.32
5.6.250.0070.05017.44
5.6.240.0110.03817.61
5.6.230.0090.04917.41
5.6.220.0050.05417.40
5.6.210.0080.04217.44
5.6.200.0070.04917.77
5.6.190.0070.04617.79
5.6.180.0050.03917.79
5.6.170.0130.04117.71
5.6.160.0100.04217.77
5.6.150.0100.03217.67
5.6.140.0100.03817.80
5.6.130.0100.02517.75
5.6.120.0070.04117.62
5.6.110.0050.04517.73
5.6.100.0040.03117.79
5.6.90.0030.04317.74
5.6.80.0050.04717.25
5.6.70.0050.04717.34
5.6.60.0030.04517.23
5.6.50.0020.02917.51
5.6.40.0130.03717.24
5.6.30.0120.03717.30
5.6.20.0080.02817.31
5.6.10.0070.02417.45
5.6.00.0120.02517.44
5.5.380.0110.04217.56
5.5.370.0080.04517.37
5.5.360.0050.03717.56
5.5.350.0090.04417.46
5.5.340.0050.04017.46
5.5.330.0080.04517.49
5.5.320.0050.02317.42
5.5.310.0070.04017.70
5.5.300.0050.02617.70
5.5.290.0070.04517.66
5.5.280.0070.02717.51
5.5.270.0090.04017.57
5.5.260.0100.04417.65
5.5.250.0090.02517.48
5.5.240.0100.02717.25
5.5.230.0080.03617.16
5.5.220.0100.04017.15
5.5.210.0090.03117.26
5.5.200.0080.03517.44
5.5.190.0060.04617.18
5.5.180.0030.04617.11
5.5.170.0040.01213.89
5.5.160.0130.03017.21
5.5.150.0070.04317.06
5.5.140.0030.04817.28
5.5.130.0070.04217.20
5.5.120.0050.04217.28
5.5.110.0050.04317.15
5.5.100.0030.03117.21
5.5.90.0060.01717.08
5.5.80.0050.02317.00
5.5.70.0080.01817.25
5.5.60.0060.01817.09
5.5.50.0040.02117.11
5.5.40.0070.02216.97
5.5.30.0040.02417.21
5.5.20.0070.01917.22
5.5.10.0060.02317.14
5.5.00.0060.02017.25
5.4.450.0080.03515.39
5.4.440.0020.03515.39
5.4.430.0100.04115.38
5.4.420.0080.04115.26
5.4.410.0030.02315.28
5.4.400.0090.03315.22
5.4.390.0100.04215.23
5.4.380.0030.02615.21
5.4.370.0030.02915.19
5.4.360.0020.03715.10
5.4.350.0080.04015.23
5.4.340.0010.04315.14
5.4.330.0090.00311.33
5.4.320.0040.03015.21
5.4.310.0020.03715.28
5.4.300.0080.02715.19
5.4.290.0100.03215.19
5.4.280.0100.03815.22
5.4.270.0090.02015.09
5.4.260.0070.02015.18
5.4.250.0130.02315.18
5.4.240.0050.02015.19
5.4.230.0000.02615.18
5.4.220.0010.02115.09
5.4.210.0030.02515.18
5.4.200.0030.01815.18
5.4.190.0030.02015.22
5.4.180.0030.02215.18
5.4.170.0070.01715.13
5.4.160.0070.03015.27
5.4.150.0040.01815.08
5.4.140.0020.02313.91
5.4.130.0000.02713.89
5.4.120.0040.02313.87
5.4.110.0020.02413.85
5.4.100.0070.01813.87
5.4.90.0030.02213.84
5.4.80.0060.02013.86
5.4.70.0030.02313.93
5.4.60.0070.02013.84
5.4.50.0040.02113.89
5.4.40.0030.02313.93
5.4.30.0050.02213.80
5.4.20.0080.01713.91
5.4.10.0050.02013.87
5.4.00.0050.01713.61
5.3.290.0050.04113.07
5.3.280.0030.02012.97
5.3.270.0050.02012.98
5.3.260.0030.02112.99
5.3.250.0030.02012.98
5.3.240.0050.01813.02
5.3.230.0070.02213.03
5.3.220.0030.02312.96
5.3.210.0040.02312.93
5.3.200.0000.02512.95
5.3.190.0000.02512.93
5.3.180.0050.02013.00
5.3.170.0070.03012.99
5.3.160.0020.02212.95
5.3.150.0050.02012.95
5.3.140.0060.02013.02
5.3.130.0080.01812.97
5.3.120.0030.02512.95
5.3.110.0020.02513.02
5.3.100.0050.01912.66
5.3.90.0050.02212.72
5.3.80.0030.02312.75
5.3.70.0020.02412.69
5.3.60.0030.02012.72
5.3.50.0030.02212.66
5.3.40.0080.01512.73
5.3.30.0000.02312.64
5.3.20.0040.02412.56
5.3.10.0000.02312.55
5.3.00.0050.02012.53
5.2.170.0030.02711.62
5.2.160.0070.02711.62
5.2.150.0000.03311.62
5.2.140.0070.03011.62
5.2.130.0000.03011.62
5.2.120.0030.02711.62
5.2.110.0030.03011.62
5.2.100.0030.02711.62
5.2.90.0000.03011.62
5.2.80.0000.03311.62
5.2.70.0070.02711.62
5.2.60.0000.04011.62
5.2.50.0000.03011.62
5.2.40.0070.02711.62
5.2.30.0000.03011.62
5.2.20.0000.03011.62
5.2.10.0000.04311.62
5.2.00.0000.03011.62
5.1.60.0070.02311.62
5.1.50.0000.02311.62
5.1.40.0030.05011.62
5.1.30.0030.02711.62
5.1.20.0030.05711.62
5.1.10.0030.04011.62
5.1.00.0030.04711.62
5.0.50.0000.05311.62
5.0.40.0000.04011.62
5.0.30.0000.05311.62
5.0.20.0030.05011.62
5.0.10.0030.03311.62
5.0.00.0130.02711.62
4.4.90.0000.01711.62
4.4.80.0000.01711.62
4.4.70.0030.01311.62
4.4.60.0000.01711.62
4.4.50.0000.01711.62
4.4.40.0000.05711.62
4.4.30.0030.01311.62
4.4.20.0000.03011.62
4.4.10.0070.02711.62
4.4.00.0070.04011.62
4.3.110.0030.03011.62
4.3.100.0030.03311.62
4.3.90.0000.03711.62
4.3.80.0030.04711.62
4.3.70.0000.01711.62
4.3.60.0030.01711.62
4.3.50.0070.03011.62
4.3.40.0000.05311.62
4.3.30.0030.01711.62
4.3.20.0000.03311.62
4.3.10.0000.02311.62
4.3.00.0000.01711.62

preferences:
40.33 ms | 401 KiB | 5 Q