3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class AWS{ private static $config; public static function setup($config){ if(isset(self::$config)){ throw new Exception("AWS has already been setup."); } self::$config = $config; } } Test\AWS::setup('foo');

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.0070.00716.72
8.3.50.0070.00718.30
8.3.40.0040.01118.60
8.3.30.0090.00618.84
8.3.20.0020.00520.20
8.3.10.0040.00423.66
8.3.00.0040.00419.50
8.2.180.0110.00416.50
8.2.170.0070.01022.96
8.2.160.0030.01020.10
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00417.38
8.2.120.0040.00426.35
8.2.110.0040.00420.35
8.2.100.0080.00417.80
8.2.90.0000.00819.05
8.2.80.0050.00317.97
8.2.70.0060.00317.38
8.2.60.0070.00017.80
8.2.50.0030.00518.07
8.2.40.0040.00419.46
8.2.30.0070.00020.53
8.2.20.0040.00417.68
8.2.10.0000.00817.93
8.2.00.0040.00418.00
8.1.280.0120.00625.92
8.1.270.0090.00023.96
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0050.00519.31
8.1.230.0100.00017.54
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.11
8.1.190.0060.00616.98
8.1.180.0080.00018.10
8.1.170.0070.00018.57
8.1.160.0000.00721.99
8.1.150.0040.00418.76
8.1.140.0060.00319.34
8.1.130.0000.00717.57
8.1.120.0000.00717.22
8.1.110.0030.00417.24
8.1.100.0000.00717.38
8.1.90.0000.00817.23
8.1.80.0030.00517.36
8.1.70.0000.00817.22
8.1.60.0040.00417.47
8.1.50.0000.00817.49
8.1.40.0060.01217.46
8.1.30.0060.00317.58
8.1.20.0040.00417.58
8.1.10.0020.00517.51
8.1.00.0000.00717.44
8.0.300.0040.00418.77
8.0.290.0040.00416.73
8.0.280.0070.00018.30
8.0.270.0030.00317.19
8.0.260.0060.00017.13
8.0.250.0060.00016.98
8.0.240.0000.00816.99
8.0.230.0000.00716.97
8.0.220.0030.00316.80
8.0.210.0070.00016.89
8.0.200.0030.00316.96
8.0.190.0030.00616.91
8.0.180.0000.00816.87
8.0.170.0040.00416.76
8.0.160.0070.00016.81
8.0.150.0070.00016.77
8.0.140.0040.00416.71
8.0.130.0060.00013.35
8.0.120.0090.00016.76
8.0.110.0000.00716.84
8.0.100.0040.00416.86
8.0.90.0050.00216.75
8.0.80.0100.00716.86
8.0.70.0050.00316.93
8.0.60.0020.00516.82
8.0.50.0070.00016.84
8.0.30.0110.00917.09
8.0.20.0160.00617.40
8.0.10.0000.00716.73
8.0.00.0080.01016.75
7.4.330.0000.00516.67
7.4.320.0000.00716.36
7.4.300.0030.00316.43
7.4.290.0030.00316.39
7.4.280.0030.00516.40
7.4.270.0020.00516.55
7.4.260.0000.00816.45
7.4.250.0000.00716.42
7.4.240.0040.00416.50
7.4.230.0070.00016.34
7.4.220.0070.02016.48
7.4.210.0130.00516.47
7.4.200.0000.00816.32
7.4.160.0060.00916.49
7.4.150.0180.00717.40
7.4.140.0100.01017.86
7.4.130.0070.00916.54
7.4.120.0120.00516.47
7.4.110.0140.00516.55
7.4.100.0070.01416.51
7.4.90.0100.00716.38
7.4.80.0070.01019.39
7.4.70.0060.01216.57
7.4.60.0160.00016.33
7.4.50.0040.01216.49
7.4.40.0000.01716.53
7.4.30.0130.00616.31
7.4.00.0090.00314.88
7.3.330.0050.00013.29
7.3.320.0080.00013.16
7.3.310.0000.00716.36
7.3.300.0060.00016.39
7.3.290.0000.00716.21
7.3.280.0110.00716.25
7.3.270.0070.01017.40
7.3.260.0090.01316.58
7.3.250.0110.00816.34
7.3.240.0090.01016.25
7.3.230.0060.01016.39
7.3.210.0100.00716.50
7.3.200.0090.01216.22
7.3.190.0100.00716.46
7.3.180.0070.01016.26
7.3.170.0100.00616.35
7.3.160.0030.01216.47
7.2.330.0090.00916.37
7.2.320.0090.01316.25
7.2.310.0100.00716.26
7.2.300.0140.00316.23
7.2.290.0320.02316.54
7.2.60.0030.00716.87
7.2.00.0070.00718.99
7.1.200.0030.01215.76
7.1.100.0040.00818.08
7.1.70.0030.00916.72
7.1.60.0170.00719.36
7.1.50.0140.00716.82
7.1.00.0000.08022.43
7.0.200.0090.00016.63
7.0.60.0030.08719.87
7.0.50.0100.07717.86
7.0.40.0030.04320.23
7.0.30.0270.05020.34
7.0.20.0270.05720.19
7.0.10.0070.04020.16
7.0.00.0100.08320.15
5.6.280.0100.06321.07
5.6.210.0200.06020.51
5.6.200.0030.08318.29
5.6.190.0000.04320.50
5.6.180.0330.05720.52
5.6.170.0200.04020.44
5.6.160.0100.08020.54
5.6.150.0070.08018.17
5.6.140.0070.06018.19
5.6.130.0130.03718.21
5.6.120.0130.05721.14
5.6.110.0070.08721.14
5.6.100.0100.05721.13
5.6.90.0070.07321.00
5.6.80.0100.06020.40
5.5.350.3730.03720.44
5.5.340.0070.04317.95
5.5.330.0100.08020.25
5.5.320.0030.05720.28
5.5.310.0200.04320.26
5.5.300.0030.04317.96
5.5.290.0170.07718.04
5.5.280.0130.05320.65
5.5.270.0030.04320.73
5.5.260.0130.07020.77
5.5.250.0100.07320.69
5.5.240.0400.05720.13

preferences:
37.02 ms | 400 KiB | 5 Q