3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Process { /** * Ensures the process is running or terminated, throws a LogicException if the process has a not started. * * @param $functionName The function name that was called. * * @throws LogicException If the process has not run. */ public function requireProcessHasRun($functionName) { if (true) { throw new LogicException(sprintf('Process must be started before calling %s.', $functionName)); } } } $p = new Process(); $p->requireProcessHasRun('S');

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.0100.01016.75
8.3.50.0140.00516.60
8.3.40.0100.01018.75
8.3.30.0120.00918.84
8.3.20.0030.00618.75
8.3.10.0030.00620.48
8.3.00.0060.00319.51
8.2.180.0070.00716.75
8.2.170.0080.00822.96
8.2.160.0070.00720.92
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0170.00026.16
8.2.120.0040.01219.83
8.2.110.0030.00720.93
8.2.100.0080.00417.78
8.2.90.0070.00321.00
8.2.80.0040.00417.93
8.2.70.0030.00617.63
8.2.60.0100.00317.54
8.2.50.0070.00318.07
8.2.40.0040.00418.09
8.2.30.0020.00517.91
8.2.20.0040.00417.59
8.2.10.0040.00417.60
8.2.00.0040.00417.82
8.1.280.0090.01225.92
8.1.270.0070.00024.66
8.1.260.0040.01226.35
8.1.250.0000.00828.09
8.1.240.0060.00322.46
8.1.230.0040.00720.63
8.1.220.0030.00617.74
8.1.210.0000.00818.85
8.1.200.0040.00817.35
8.1.190.0040.00417.64
8.1.180.0050.00518.10
8.1.170.0090.00018.70
8.1.160.0040.00418.94
8.1.150.0040.00418.55
8.1.140.0060.00317.49
8.1.130.0070.00017.82
8.1.120.0030.00417.37
8.1.110.0040.00417.32
8.1.100.0000.00717.42
8.1.90.0050.00317.46
8.1.80.0000.00717.44
8.1.70.0000.00717.43
8.1.60.0040.00417.59
8.1.50.0040.00417.45
8.1.40.0040.00417.57
8.1.30.0000.00717.66
8.1.20.0000.00817.64
8.1.10.0000.00817.52
8.1.00.0000.00817.42
8.0.300.0030.00719.75
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0030.00317.11
8.0.260.0000.00716.85
8.0.250.0040.00416.96
8.0.240.0030.00716.83
8.0.230.0000.00716.83
8.0.220.0000.00716.87
8.0.210.0090.00016.86
8.0.200.0030.00317.01
8.0.190.0000.00716.97
8.0.180.0000.00816.93
8.0.170.0060.00316.94
8.0.160.0000.00716.78
8.0.150.0060.00316.91
8.0.140.0040.00416.79
8.0.130.0050.00013.42
8.0.120.0000.00716.94
8.0.110.0080.00016.94
8.0.100.0000.00816.99
8.0.90.0070.00016.80
8.0.80.0100.01016.89
8.0.70.0040.00416.79
8.0.60.0040.00416.95
8.0.50.0030.00517.00
8.0.30.0120.00817.02
8.0.20.0090.00917.34
8.0.10.0000.00817.07
8.0.00.0130.00616.71
7.4.330.0030.00313.00
7.4.320.0030.00316.51
7.4.300.0030.00316.49
7.4.290.0000.00716.57
7.4.280.0000.00716.51
7.4.270.0030.00316.61
7.4.260.0060.00013.26
7.4.250.0000.00916.61
7.4.240.0070.00016.59
7.4.230.0040.00416.49
7.4.220.0090.01016.59
7.4.210.0070.00916.55
7.4.200.0030.00516.62
7.4.190.0000.00716.45
7.4.160.0100.00716.32
7.4.150.0110.00716.54
7.4.140.0090.01116.52
7.4.130.0060.01516.51
7.4.120.0100.00716.60
7.4.110.0070.01016.52
7.4.100.0100.00716.45
7.4.90.0060.01216.40
7.4.80.0060.01616.63
7.4.70.0100.01316.22
7.4.60.0000.01816.59
7.4.50.0030.00616.58
7.4.40.0000.01116.56
7.4.30.0100.00516.38
7.4.00.0020.01514.69
7.3.330.0060.00013.23
7.3.320.0060.00013.35
7.3.310.0030.00316.40
7.3.300.0080.00016.34
7.3.290.0030.01116.35
7.3.280.0080.00916.38
7.3.270.0080.00816.43
7.3.260.0140.00316.37
7.3.250.0110.01316.40
7.3.240.0090.00616.39
7.3.230.0090.01316.57
7.3.210.0100.00616.60
7.3.200.0100.01019.39
7.3.190.0110.01116.31
7.3.180.0120.00416.44
7.3.170.0100.01116.32
7.3.160.0160.00016.48
7.3.120.0050.01114.92
7.3.110.0120.00615.12
7.3.100.0070.00714.77
7.3.90.0040.01114.68
7.3.80.0060.00614.91
7.3.70.0030.01014.91
7.3.60.0080.00514.56
7.3.50.0030.00914.88
7.3.40.0130.00314.64
7.3.30.0100.01014.54
7.3.20.0060.01316.48
7.3.10.0110.00016.58
7.3.00.0000.01516.31
7.2.330.0090.00916.69
7.2.320.0070.01116.49
7.2.310.0100.01016.62
7.2.300.0030.01516.45
7.2.290.0030.01316.66
7.2.250.0070.00715.23
7.2.240.0030.01715.11
7.2.230.0100.00714.66
7.2.220.0000.01414.66
7.2.210.0040.00814.96
7.2.200.0050.00615.23
7.2.190.0070.00714.79
7.2.180.0060.01015.00
7.2.170.0070.01014.95
7.2.60.0110.00416.99
7.2.00.0030.00918.94
7.1.330.0070.00715.82
7.1.320.0070.01015.79
7.1.310.0100.00315.55
7.1.300.0100.00315.77
7.1.290.0030.00815.79
7.1.280.0030.01015.94
7.1.270.0060.00615.71
7.1.260.0000.01415.86
7.1.200.0030.00915.80
7.1.100.0040.00417.98
7.1.70.0030.00717.11
7.1.60.0110.01119.40
7.1.50.0090.01216.96
7.1.00.0100.07322.43
7.0.200.0060.00316.63
7.0.140.0070.07322.08
7.0.120.0070.07022.17
7.0.60.0070.06020.02
7.0.50.0070.08017.89
7.0.40.0030.06017.69
7.0.30.0170.07017.76
7.0.20.0200.07317.72
7.0.10.0070.08017.68
7.0.00.0030.09017.68
5.6.280.0000.07721.07
5.6.210.0100.07020.61
5.6.200.0070.08318.20
5.6.190.0070.08318.15
5.6.180.0100.05318.19
5.6.170.0070.06018.20
5.6.160.0070.07318.14
5.6.150.0000.05018.20
5.6.140.0200.05318.28
5.6.130.0100.07318.23
5.6.120.0070.08018.15
5.6.110.0030.04318.24
5.6.100.0070.08718.16
5.6.90.0030.08018.25
5.6.80.0070.08017.56
5.6.70.0070.07017.66
5.6.60.0100.07317.48
5.6.50.0100.07317.57
5.6.40.0030.04017.49
5.6.30.0130.06317.54
5.6.20.0030.07317.57
5.6.10.0070.07717.58
5.6.00.0070.08017.63
5.5.350.0300.04020.35
5.5.340.0030.05718.05
5.5.330.0130.07317.94
5.5.320.0070.06717.99
5.5.310.0130.07017.95
5.5.300.0030.08718.07
5.5.290.0070.04718.03
5.5.280.0000.08718.08
5.5.270.0130.04317.93
5.5.260.0030.06317.96
5.5.250.0070.05017.80
5.5.240.0070.06717.43
5.5.230.0070.07717.30
5.5.220.0070.07017.32
5.5.210.0030.05717.31
5.5.200.0030.05717.34
5.5.190.0100.07317.31
5.5.180.0000.07017.30
5.5.160.0070.07717.44
5.5.150.0070.06717.30
5.5.140.0030.04017.30
5.5.130.0030.07717.40
5.5.120.0030.07717.30
5.5.110.0070.05317.43
5.5.100.0000.04317.34
5.5.90.0030.07017.34
5.5.80.0070.06717.33
5.5.70.0030.06717.18
5.5.60.0100.06717.25
5.5.50.0070.03317.31
5.5.40.0100.07717.21
5.5.30.0100.05717.22
5.5.20.0030.07017.19
5.5.10.0070.07017.23
5.5.00.0100.07717.22
5.4.450.0200.06719.61
5.4.440.0030.05019.22
5.4.430.0070.05719.37
5.4.420.0030.04319.30
5.4.410.0030.06019.16
5.4.400.0000.06018.98
5.4.390.0130.07019.12
5.4.380.0070.08319.03
5.4.370.0070.07719.03
5.4.360.0130.06719.02
5.4.350.0000.08719.27
5.4.340.0030.08019.03
5.4.320.0070.08319.03
5.4.310.0030.06019.09
5.4.300.0100.07319.09
5.4.290.0070.08019.01
5.4.280.0100.07719.12
5.4.270.0130.07319.13
5.4.260.0100.06318.98
5.4.250.0030.07319.03
5.4.240.0070.08019.00
5.4.230.0230.06319.12
5.4.220.0130.04318.98
5.4.210.0030.03719.12
5.4.200.0030.04019.05
5.4.190.0070.06319.26
5.4.180.0000.05719.05
5.4.170.0070.05719.14
5.4.160.0030.05019.08
5.4.150.0130.07319.25
5.4.140.0100.06016.39
5.4.130.0130.06716.42
5.4.120.0030.07016.23
5.4.110.0100.03016.59
5.4.100.0100.07016.35
5.4.90.0370.03716.30
5.4.80.0000.08016.39
5.4.70.0070.07316.39
5.4.60.0070.04716.39
5.4.50.0070.05016.55
5.4.40.0070.06016.58
5.4.30.0000.04716.52
5.4.20.0100.07016.31
5.4.10.0030.03716.37
5.4.00.0030.05715.98
5.3.290.0030.06314.71
5.3.280.0070.04714.63
5.3.270.0070.07714.68
5.3.260.0130.06714.70
5.3.250.0070.06714.60
5.3.240.0030.07714.57
5.3.230.0170.07014.45
5.3.220.0100.08014.79
5.3.210.0100.07714.55
5.3.200.0030.08714.61
5.3.190.0030.08014.60
5.3.180.0100.07014.41
5.3.170.0170.07314.66
5.3.160.0030.06714.55
5.3.150.0130.06714.61
5.3.140.0030.06314.56
5.3.130.0100.07314.59
5.3.120.0000.08314.58
5.3.110.0070.08314.61
5.3.100.0070.03314.14
5.3.90.0070.06014.12
5.3.80.0070.07314.04
5.3.70.0000.07013.86
5.3.60.0200.03013.99
5.3.50.0130.07013.84
5.3.40.0100.07313.79
5.3.30.0030.07713.90
5.3.20.0070.07013.58
5.3.10.0100.02713.71
5.3.00.0000.04713.66
5.2.170.0070.04711.05
5.2.160.0030.06311.20
5.2.150.0100.06011.11
5.2.140.0130.05711.01
5.2.130.0000.05311.20
5.2.120.0030.04711.10
5.2.110.0000.04011.14
5.2.100.0070.02711.12
5.2.90.0000.03711.12
5.2.80.0000.03011.13
5.2.70.0030.03011.11
5.2.60.0000.03011.11
5.2.50.0000.03011.06
5.2.40.0030.02711.04
5.2.30.0000.03311.18
5.2.20.0000.03010.80
5.2.10.0070.02310.84
5.2.00.0000.03010.62
5.1.60.0030.0239.91
5.1.50.0000.0279.94
5.1.40.0030.02010.04
5.1.30.0100.02310.36
5.1.20.0030.02310.36
5.1.10.0030.02310.01
5.1.00.0000.02710.15
5.0.50.0030.0208.49
5.0.40.0000.0208.61
5.0.30.0070.0238.21
5.0.20.0030.0178.10
5.0.10.0000.0208.18
5.0.00.0000.0308.18
4.4.90.0000.0177.69
4.4.80.0000.0177.69
4.4.70.0000.0177.69
4.4.60.0000.0137.69
4.4.50.0030.0137.69
4.4.40.0000.0237.69
4.4.30.0000.0177.69
4.4.20.0000.0177.69
4.4.10.0000.0177.69
4.4.00.0000.0237.69
4.3.110.0000.0137.69
4.3.100.0000.0137.69
4.3.90.0000.0137.69
4.3.80.0000.0237.69
4.3.70.0000.0137.69
4.3.60.0000.0177.69
4.3.50.0000.0177.69
4.3.40.0000.0237.69
4.3.30.0030.0207.69
4.3.20.0000.0177.69
4.3.10.0000.0137.69
4.3.00.0000.0177.69

preferences:
40.68 ms | 401 KiB | 5 Q