3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Paypal; use \Antiquated\API as PaypalsShittyAPI; class PaypalIsShittyException extends Exception {} class PaypalInconsistencyException extends PaypalIsShittyException {} class PaypalExperience extends PaypalsShittyAPI { protected $garbage; public function isGarbage() { return $this->garbage; } public function setIsGarbage($garbage) { $this->garbage = $garbage; } public function canUpdate() { return false; } public function isIntuitive() { throw new PaypalInconsistencyException('lol'); } public function makeMoney() { throw new PaypalIsShittyException('This feature is unsupported.'); } } $paypal = new PaypalExperience; try { if ($paypal->canUpdate() && $paypal->isIntuitive()) { call_user_func(function() use ($paypal) { return $paypal->makeMoney(); }); } else { $paypal->setIsGarbage(true); } } catch(PaypalInconsistencyException $e) { die('Wait, what the fuck?'); }

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.00718.31
8.3.50.0090.01221.27
8.3.40.0140.00718.84
8.3.30.0000.01520.38
8.3.20.0040.00420.32
8.3.10.0040.00422.04
8.3.00.0050.00322.44
8.2.180.0070.00716.63
8.2.170.0120.00322.96
8.2.160.0030.01022.25
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00820.82
8.2.110.0030.00622.11
8.2.100.0080.00519.46
8.2.90.0050.00319.08
8.2.80.0070.00019.21
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0040.00420.07
8.2.30.0040.00419.45
8.2.20.0050.00317.73
8.2.10.0000.00817.73
8.2.00.0030.00517.66
8.1.280.0110.01125.92
8.1.270.0070.00023.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0120.00019.10
8.1.220.0070.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.22
8.1.190.0000.00817.54
8.1.180.0030.00619.01
8.1.170.0050.00318.65
8.1.160.0030.00718.75
8.1.150.0040.00418.58
8.1.140.0040.00417.27
8.1.130.0030.00317.72
8.1.120.0040.00417.48
8.1.110.0000.00717.44
8.1.100.0040.00417.41
8.1.90.0040.00417.42
8.1.80.0000.00717.38
8.1.70.0070.00017.30
8.1.60.0000.00917.53
8.1.50.0070.00017.44
8.1.40.0000.00817.36
8.1.30.0000.00717.58
8.1.20.0060.00317.59
8.1.10.0000.00817.47
8.1.00.0030.00517.45
8.0.300.0080.00018.90
8.0.290.0040.00417.15
8.0.280.0030.00318.45
8.0.270.0000.00816.86
8.0.260.0060.00016.84
8.0.250.0070.00016.86
8.0.240.0030.00717.02
8.0.230.0070.00317.00
8.0.220.0030.00316.83
8.0.210.0040.00417.00
8.0.200.0000.00717.00
8.0.190.0030.00617.05
8.0.180.0080.00017.00
8.0.170.0000.00717.01
8.0.160.0000.00716.81
8.0.150.0040.00416.93
8.0.140.0080.00016.80
8.0.130.0000.00513.37
8.0.120.0040.00416.82
8.0.110.0000.00716.86
8.0.100.0040.00416.95
8.0.90.0000.00816.98
8.0.80.0000.01416.94
8.0.70.0040.00417.03
8.0.60.0000.00817.00
8.0.50.0050.00316.96
8.0.30.0110.00717.10
8.0.20.0130.00517.40
8.0.10.0030.00617.09
8.0.00.0110.01016.73
7.4.330.0050.00015.00
7.4.320.0000.00616.34
7.4.300.0000.00716.41
7.4.290.0000.00716.46
7.4.280.0040.00416.48
7.4.270.0060.00316.45
7.4.260.0030.00313.21
7.4.250.0070.00016.51
7.4.240.0000.00716.42
7.4.230.0030.00316.34
7.4.220.0090.00916.52
7.4.210.0050.01316.49
7.4.200.0000.00716.57
7.4.190.0040.00416.40
7.4.160.0130.00616.61
7.4.150.0110.00717.40
7.4.140.0100.00717.86
7.4.130.0070.00916.48
7.4.120.0070.01016.52
7.4.110.0090.00916.42
7.4.100.0060.01116.43
7.4.90.0100.01016.37
7.4.80.0130.01119.39
7.4.70.0100.00716.59
7.4.60.0160.00016.67
7.4.50.0080.00016.18
7.4.40.0070.00722.77
7.4.30.0070.00916.33
7.4.00.0040.01215.09
7.3.330.0000.00613.18
7.3.320.0030.00313.25
7.3.310.0030.00316.32
7.3.300.0000.00716.36
7.3.290.0150.00616.30
7.3.280.0080.00916.33
7.3.270.0200.00017.40
7.3.260.0060.01116.43
7.3.250.0100.01116.49
7.3.240.0100.00716.36
7.3.230.0150.00316.39
7.3.210.0130.00316.48
7.3.200.0070.01519.39
7.3.190.0160.00616.53
7.3.180.0070.01016.43
7.3.170.0030.01516.47
7.3.160.0130.00716.39
7.3.120.0070.01114.75
7.2.330.0120.00616.59
7.2.320.0070.01316.50
7.2.310.0070.01016.61
7.2.300.0140.01016.42
7.2.290.0100.00716.58
7.2.80.0030.01016.54
7.1.200.0040.00415.72
7.1.70.0000.00717.02
7.1.60.0100.01319.32
7.1.50.0110.01116.84
7.1.00.0030.05022.46
7.0.200.0260.00616.18
7.0.140.0070.07022.12
7.0.60.0100.08720.08
7.0.50.0070.03717.88
7.0.40.0170.07720.18
7.0.30.0370.07720.33
7.0.20.0300.08320.23
7.0.10.0030.09020.23
7.0.00.0030.04320.17
5.6.280.0030.07321.16
5.6.210.0130.07720.56
5.6.200.0000.04318.19
5.6.190.0170.08020.47
5.6.180.0330.06020.48
5.6.170.0270.03720.47
5.6.160.0030.04320.39
5.6.150.0100.06018.18
5.6.140.0030.06018.27
5.6.130.0100.04318.16
5.6.120.0030.05020.93
5.6.110.0100.07021.02
5.6.100.0300.05721.13
5.6.90.0100.05321.08
5.6.80.0000.04020.39
5.5.350.0100.07020.42
5.5.340.0070.07318.05
5.5.330.0000.04320.35
5.5.320.3930.02720.27
5.5.310.0270.06320.31
5.5.300.0100.07017.95
5.5.290.0070.08318.06
5.5.280.0070.05320.82
5.5.270.0100.08720.87
5.5.260.0100.03720.97
5.5.250.0070.04020.57
5.5.240.0030.06020.27
5.4.450.1830.04319.46
5.4.440.1570.04319.41
5.4.430.1600.04719.55
5.4.420.1630.04019.19
5.4.410.1600.04019.26
5.4.400.1930.04719.14
5.4.390.1630.04018.95
5.4.380.1400.04719.08
5.4.370.0130.07019.31
5.4.360.0100.04319.22
5.4.350.0500.06018.86
5.4.340.1670.03319.22
5.4.320.1770.04319.15
5.4.310.1700.03719.22
5.4.300.1630.04318.99
5.4.290.1570.03719.22
5.4.280.1770.03719.06
5.4.270.1730.03718.98
5.4.260.1870.04019.09
5.4.250.1730.04718.89
5.4.240.1770.04718.83
5.4.230.1100.03719.08
5.4.220.0070.04019.34
5.4.210.0030.03719.17
5.4.200.1200.03719.08
5.4.190.1500.04319.24
5.4.180.1270.03718.94
5.4.170.1730.03318.98
5.4.160.1600.04319.20
5.4.150.1970.04019.25
5.4.140.1870.04316.56
5.4.130.1900.04016.36
5.4.120.1670.02716.37
5.4.110.1670.03016.33
5.4.100.1670.04716.60
5.4.90.1870.04316.30
5.4.80.0070.07016.62
5.4.70.0030.06716.59
5.4.60.0830.03316.33
5.4.50.1500.04316.53
5.4.40.1600.02716.34
5.4.30.1500.04016.51
5.4.20.1630.02716.48
5.4.10.1830.04016.52
5.4.00.1730.04015.83
5.3.290.1670.04714.68
5.3.280.1900.04014.54
5.3.270.1700.04014.74
5.3.260.1600.03714.69
5.3.250.1670.05014.70
5.3.240.0230.05314.54
5.3.230.0030.03714.59
5.3.220.0630.05314.55
5.3.210.1570.03714.50
5.3.200.1600.03014.48
5.3.190.1800.03714.57
5.3.180.1200.03314.63
5.3.170.1500.04014.54
5.3.160.1570.03714.57
5.3.150.1870.04714.55
5.3.140.1770.04714.65
5.3.130.1800.04714.64
5.3.120.1670.03014.57
5.3.110.1700.03014.68
5.3.100.1000.03714.12
5.3.90.0070.06713.93
5.3.80.0030.04313.94
5.3.70.0900.04013.97
5.3.60.1600.03314.04
5.3.50.1530.05014.04
5.3.40.1530.04013.88
5.3.30.1570.03313.83
5.3.20.1630.04713.64
5.3.10.1700.03313.72
5.3.00.1500.03313.66
5.2.170.1430.03311.18
5.2.160.1430.03010.98
5.2.150.1300.03310.99
5.2.140.1430.03011.00
5.2.130.1170.02711.28
5.2.120.1300.03011.17
5.2.110.1400.03311.04
5.2.100.1370.02710.94
5.2.90.1200.03010.94
5.2.80.1400.02711.14
5.2.70.1530.04311.25
5.2.60.1500.03310.89
5.2.50.1300.03011.06
5.2.40.0200.03011.04
5.2.30.0070.02310.90
5.2.20.0000.06010.80
5.2.10.0000.03010.76
5.2.00.0630.03010.66
5.1.60.0930.0309.91
5.1.50.1170.0309.93
5.1.40.1100.0239.91
5.1.30.1070.03010.20
5.1.20.1270.03010.29
5.1.10.0730.0309.96
5.1.00.0000.0509.93
5.0.50.0030.0238.52
5.0.40.0000.0438.57
5.0.30.0030.0308.10
5.0.20.0000.0208.09
5.0.10.0030.0178.29
5.0.00.0370.0338.23
4.4.90.0630.0307.34
4.4.80.0670.0237.34
4.4.70.0430.0207.34
4.4.60.0530.0177.34
4.4.50.0600.0237.34
4.4.40.0670.0377.34
4.4.30.0600.0137.34
4.4.20.0570.0207.34
4.4.10.0530.0207.34
4.4.00.0570.0307.34
4.3.110.0570.0107.34
4.3.100.0670.0277.34
4.3.90.0670.0277.34
4.3.80.0630.0277.34
4.3.70.0600.0137.34
4.3.60.0500.0177.34
4.3.50.0670.0137.34
4.3.40.0500.0337.34
4.3.30.0370.0307.34
4.3.20.0330.0207.34
4.3.10.0270.0307.34
4.3.00.0270.0177.34

preferences:
47.54 ms | 401 KiB | 5 Q