3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static $test1 = [1,2,3]; static function yourarray() { return self::$test1; } } var_dump($A::yourarray);

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.0190.00316.88
8.3.50.0020.01622.11
8.3.40.0070.00718.88
8.3.30.0140.00018.71
8.3.20.0070.00020.21
8.3.10.0050.00323.65
8.3.00.0040.00419.91
8.2.180.0090.00618.54
8.2.170.0040.01122.96
8.2.160.0140.00720.39
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0050.00519.15
8.2.120.0080.00026.35
8.2.110.0060.00320.43
8.2.100.0000.01117.91
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0000.00817.38
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0030.00621.12
8.2.30.0070.00020.48
8.2.20.0000.00717.66
8.2.10.0040.00417.89
8.2.00.0040.00417.98
8.1.280.0030.01025.92
8.1.270.0040.00420.11
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0080.00023.92
8.1.230.0000.01119.15
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0030.00717.25
8.1.190.0050.00317.70
8.1.180.0000.00718.10
8.1.170.0000.00818.34
8.1.160.0000.00720.64
8.1.150.0000.00718.63
8.1.140.0030.00519.44
8.1.130.0030.00317.57
8.1.120.0030.00517.36
8.1.110.0000.00717.21
8.1.100.0000.00817.34
8.1.90.0030.00517.23
8.1.80.0000.00717.30
8.1.70.0040.00417.19
8.1.60.0060.00317.37
8.1.50.0040.00417.46
8.1.40.0030.00617.33
8.1.30.0030.00517.48
8.1.20.0000.00817.60
8.1.10.0040.00417.55
8.1.00.0040.00417.42
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0040.00418.37
8.0.270.0070.00017.09
8.0.260.0060.00017.20
8.0.250.0030.00316.85
8.0.240.0000.00716.91
8.0.230.0000.00716.93
8.0.220.0040.00416.82
8.0.210.0040.00416.86
8.0.200.0050.00216.89
8.0.190.0000.00916.83
8.0.180.0040.00416.92
8.0.170.0070.00016.80
8.0.160.0040.00416.95
8.0.150.0030.00316.84
8.0.140.0040.00416.88
8.0.130.0060.00013.30
8.0.120.0040.00416.85
8.0.110.0070.00016.78
8.0.100.0000.00716.81
8.0.90.0000.00816.75
8.0.80.0060.00916.87
8.0.70.0040.00416.68
8.0.60.0040.00416.83
8.0.50.0080.00016.71
8.0.30.0140.00617.12
8.0.20.0110.01117.40
8.0.10.0070.00016.87
8.0.00.0110.00916.64
7.4.330.0000.00516.72
7.4.320.0000.00616.32
7.4.300.0070.00016.33
7.4.290.0000.00716.39
7.4.280.0060.00316.50
7.4.270.0030.00316.45
7.4.260.0040.00416.49
7.4.250.0050.00216.39
7.4.240.0040.00416.44
7.4.230.0030.00316.60
7.4.220.0090.01616.41
7.4.210.0100.01016.39
7.4.200.0040.00316.46
7.4.160.0060.00916.21
7.4.150.0150.00317.40
7.4.140.0080.01317.86
7.4.130.0130.00616.45
7.4.120.0120.00516.47
7.4.110.0070.01116.43
7.4.100.0030.01816.47
7.4.90.0080.00816.41
7.4.80.0100.01019.39
7.4.70.0030.01416.41
7.4.60.0170.00016.50
7.4.50.0090.00616.36
7.4.40.0080.00816.57
7.4.30.0090.00916.61
7.4.00.0080.01014.73
7.3.330.0000.00513.22
7.3.320.0060.00013.34
7.3.310.0000.00716.37
7.3.300.0060.00016.24
7.3.290.0070.00716.34
7.3.280.0050.01016.39
7.3.270.0130.00417.40
7.3.260.0060.01216.52
7.3.250.0100.00916.35
7.3.240.0070.01216.50
7.3.230.0160.00716.43
7.3.210.0100.01316.52
7.3.200.0050.01116.37
7.3.190.0090.00916.50
7.3.180.0100.01316.59
7.3.170.0120.00916.52
7.3.160.0170.00316.45
7.3.120.0060.01314.98
7.3.110.0030.01314.98
7.3.100.0040.00814.88
7.3.90.0120.00314.93
7.3.80.0000.01514.85
7.3.70.0090.00614.87
7.3.60.0060.00914.61
7.3.50.0080.00814.79
7.3.40.0080.00414.82
7.3.30.0030.01014.67
7.3.20.0070.01116.70
7.3.10.0040.01416.58
7.3.00.0130.00316.77
7.2.330.0070.01016.44
7.2.320.0070.01016.62
7.2.310.0130.00316.53
7.2.300.0040.01316.44
7.2.290.0130.01016.29
7.2.250.0060.00914.86
7.2.240.0060.01114.56
7.2.230.0070.01114.63
7.2.220.0070.00714.56
7.2.210.0070.00714.71
7.2.200.0040.01214.73
7.2.190.0130.00314.79
7.2.180.0040.01214.82
7.2.170.0040.00814.90
7.2.60.0030.00916.76
7.1.330.0080.00815.83
7.1.320.0040.01115.84
7.1.310.0030.01015.32
7.1.300.0000.01615.50
7.1.290.0080.00515.64
7.1.280.0040.00815.73
7.1.270.0120.00315.65
7.1.260.0000.01115.48
7.1.200.0060.00615.63
7.1.70.0060.00316.78
7.1.60.0140.00719.13
7.1.50.0080.01216.91
7.1.00.0030.07322.40
7.0.200.0070.00016.85
7.0.60.0070.08319.91
7.0.50.0200.06717.83
7.0.40.0030.06720.24
7.0.30.0230.04320.22
7.0.20.0400.06020.24
7.0.10.0170.07720.09
7.0.00.0100.08020.25
5.6.280.0070.05720.87
5.6.210.0030.08320.75
5.6.200.0070.08018.23
5.6.190.0070.07720.42
5.6.180.0100.08020.77
5.6.170.0270.08020.61
5.6.160.0100.05720.54
5.6.150.0070.08018.29
5.6.140.0130.07018.28
5.6.130.0030.04718.15
5.6.120.0130.08321.12
5.6.110.0070.08721.11
5.6.100.0070.07721.09
5.6.90.0070.07021.04
5.6.80.0200.06020.36
5.5.350.4230.04020.41
5.5.340.0070.08017.98
5.5.330.0070.05720.40
5.5.320.0700.05320.25
5.5.310.0300.03320.51
5.5.300.0170.06718.08
5.5.290.0030.09018.00
5.5.280.0030.04020.89
5.5.270.0070.08720.89
5.5.260.0070.07720.77
5.5.250.0130.07320.59
5.5.240.0200.05720.19

preferences:
42.76 ms | 401 KiB | 5 Q