3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static public $bar = ['baz' => 3]; static public function baz() { return 2; } } $bar = ['baz' => 'bar']; var_dump(Foo::{$bar['baz']}());

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.0200.00316.88
8.3.50.0090.00616.34
8.3.40.0030.01719.02
8.3.30.0030.01018.84
8.3.20.0040.00420.28
8.3.10.0040.00423.56
8.3.00.0040.00423.66
8.2.180.0060.01218.54
8.2.170.0100.01318.83
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.01419.83
8.2.120.0040.00426.35
8.2.110.0030.00622.24
8.2.100.0120.00018.03
8.2.90.0040.00419.21
8.2.80.0080.00017.97
8.2.70.0000.01017.63
8.2.60.0080.00017.68
8.2.50.0000.00918.07
8.2.40.0040.00420.59
8.2.30.0040.00420.68
8.2.20.0040.00417.75
8.2.10.0040.00418.07
8.2.00.0040.00417.96
8.1.280.0100.00725.92
8.1.270.0100.00023.97
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0100.00320.51
8.1.230.0080.00319.05
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0050.00517.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0050.00318.53
8.1.160.0040.00420.71
8.1.150.0070.00018.73
8.1.140.0040.00419.46
8.1.130.0000.00717.68
8.1.120.0000.00817.33
8.1.110.0020.00517.45
8.1.100.0000.00717.40
8.1.90.0050.00317.32
8.1.80.0040.00417.38
8.1.70.0000.00717.30
8.1.60.0020.00517.52
8.1.50.0000.00817.51
8.1.40.0050.00217.43
8.1.30.0000.00817.59
8.1.20.0040.00417.64
8.1.10.0070.00017.59
8.1.00.0030.00617.50
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0040.00418.26
8.0.270.0000.00717.14
8.0.260.0040.00417.14
8.0.250.0060.00016.87
8.0.240.0030.00316.95
8.0.230.0000.00716.93
8.0.220.0000.00716.95
8.0.210.0030.00516.89
8.0.200.0000.00716.97
8.0.190.0030.00516.99
8.0.180.0040.00416.92
8.0.170.0050.00316.95
8.0.160.0050.00316.89
8.0.150.0040.00416.95
8.0.140.0060.00616.87
8.0.130.0000.00513.26
8.0.120.0040.00416.88
8.0.110.0080.00016.91
8.0.100.0080.00016.93
8.0.90.0050.00316.88
8.0.80.0040.01116.86
8.0.70.0040.00416.70
8.0.60.0050.00216.79
8.0.50.0040.00416.78
8.0.30.0110.00817.04
8.0.20.0110.01017.40
8.0.10.0040.00417.00
8.0.00.0130.00516.70
7.4.330.0000.00516.81
7.4.320.0000.00716.59
7.4.300.0030.00316.57
7.4.290.0030.00716.42
7.4.280.0050.00516.59
7.4.270.0070.00016.51
7.4.260.0070.00016.49
7.4.250.0070.00016.47
7.4.240.0050.00216.52
7.4.230.0070.00016.35
7.4.220.0170.00716.36
7.4.210.0070.00716.65
7.4.200.0040.00416.44
7.4.160.0080.00816.56
7.4.150.0070.01117.40
7.4.140.0060.01117.86
7.4.130.0110.00716.49
7.4.120.0070.01416.60
7.4.110.0030.01316.41
7.4.100.0140.00816.48
7.4.90.0060.01216.71
7.4.80.0000.01619.39
7.4.70.0100.00716.48
7.4.60.0030.01316.54
7.4.50.0040.01516.50
7.4.40.0100.00716.47
7.4.30.0030.01316.49
7.4.10.0060.01314.81
7.4.00.0100.00614.85
7.3.330.0000.00513.16
7.3.320.0050.00013.33
7.3.310.0030.00316.39
7.3.300.0070.00016.33
7.3.290.0050.01116.29
7.3.280.0090.00816.28
7.3.270.0110.00617.40
7.3.260.0100.00716.34
7.3.250.0100.00616.52
7.3.240.0120.00716.51
7.3.230.0200.00616.46
7.3.210.0170.00016.27
7.3.200.0070.01119.39
7.3.190.0100.01016.62
7.3.180.0130.00316.54
7.3.170.0140.00316.50
7.3.160.0130.01016.25
7.3.130.0030.01014.86
7.3.120.0060.01114.74
7.3.110.0080.00814.80
7.3.100.0030.00914.73
7.3.90.0030.00914.96
7.3.80.0080.00614.80
7.3.70.0020.00914.80
7.3.60.0060.00614.72
7.3.50.0060.00914.85
7.3.40.0060.00614.89
7.3.30.0000.01114.85
7.3.20.0070.00716.62
7.3.10.0090.00416.42
7.3.00.0100.00216.53
7.2.330.0060.01316.65
7.2.320.0110.01116.64
7.2.310.0170.00016.62
7.2.300.0100.01016.59
7.2.290.0110.01116.32
7.2.260.0060.01014.83
7.2.250.0090.01014.84
7.2.240.0070.01214.94
7.2.230.0090.00514.73
7.2.220.0060.01115.12
7.2.210.0070.00915.06
7.2.200.0080.00914.87
7.2.190.0090.00614.99
7.2.180.0090.00614.95
7.2.170.0000.01414.71
7.2.160.0000.01614.86
7.2.150.0100.00616.75
7.2.140.0060.01216.85
7.2.130.0140.00016.82
7.2.120.0130.00016.50
7.2.110.0090.00616.91
7.2.100.0000.01116.76
7.2.90.0090.00616.88
7.2.80.0070.00716.90
7.2.70.0100.00616.96
7.2.60.0060.00816.85
7.2.50.0000.01216.84
7.2.40.0140.00016.96
7.2.30.0070.00716.79
7.2.20.0030.01316.75
7.2.10.0070.01016.99
7.2.00.0060.00818.15
7.1.330.0060.01015.70
7.1.320.0060.00715.60
7.1.310.0020.01215.74
7.1.300.0050.00715.50
7.1.290.0020.01215.61
7.1.280.0050.00615.56
7.1.270.0030.01215.66
7.1.260.0090.00415.52
7.1.250.0060.00315.70
7.1.240.0070.00715.67
7.1.230.0100.00015.56
7.1.220.0000.01015.79
7.1.210.0060.00615.71
7.1.200.0060.00815.79
7.1.190.0000.01415.61
7.1.180.0030.00915.45
7.1.170.0070.00415.43
7.1.160.0100.00315.84
7.1.150.0060.00615.56
7.1.140.0040.01115.61
7.1.130.0100.00715.66
7.1.120.0000.01115.79
7.1.110.0030.01015.87
7.1.100.0050.00516.98
7.1.90.0030.01115.45
7.1.80.0000.00915.87
7.1.70.0050.00716.31
7.1.60.0080.01117.48
7.1.50.0050.01316.27
7.1.40.0000.01115.35
7.1.30.0070.00415.63
7.1.20.0110.00415.33
7.1.10.0090.00615.64
7.1.00.0020.04819.06
7.0.330.0000.01315.07
7.0.320.0040.00715.51
7.0.310.0100.00715.32
7.0.300.0070.00715.33
7.0.290.0080.00315.16
7.0.280.0060.00615.48
7.0.270.0060.00915.25
7.0.260.0070.00415.36
7.0.250.0040.00715.24
7.0.240.0100.00715.55
7.0.230.0070.00715.56
7.0.220.0030.00715.54
7.0.210.0000.01214.98
7.0.200.0050.00716.05
7.0.190.0070.00715.23
7.0.180.0070.00315.47
7.0.170.0080.00415.13
7.0.160.0000.01515.46
7.0.150.0070.01115.16
7.0.140.0000.01315.39
7.0.130.0040.00815.36
7.0.120.0090.00015.37
7.0.110.0000.01515.42
7.0.100.0000.01315.13
7.0.90.0100.00315.40
7.0.80.0030.00915.46
7.0.70.0060.00615.35
7.0.60.0080.03818.57
7.0.50.0030.03016.46
7.0.40.0050.03016.52
7.0.30.0280.03216.84
7.0.20.0140.04616.89
7.0.10.0100.04316.88
7.0.00.0090.04116.87
5.6.400.0040.00814.52
5.6.390.0100.00314.34
5.6.380.0100.00614.65
5.6.370.0070.01114.48
5.6.360.0060.00614.53
5.6.350.0100.00314.17
5.6.340.0030.00614.57
5.6.330.0070.00714.02
5.6.320.0000.01214.26
5.6.310.0030.01314.30
5.6.300.0080.00814.13
5.6.290.0040.01114.59
5.6.280.0070.01817.77
5.6.270.0030.01314.11
5.6.260.0060.00314.27
5.6.250.0030.01014.29
5.6.240.0090.00614.09
5.6.230.0110.00314.34
5.6.220.0000.01614.35
5.6.210.0050.04117.39
5.6.200.0070.02816.16
5.6.190.0050.03717.42
5.6.180.0220.02517.51
5.6.170.0180.02317.33
5.6.160.0100.03717.42
5.6.150.0040.03516.39
5.6.140.0050.02316.18
5.6.130.0040.02216.31
5.6.120.0140.02817.60
5.6.110.0100.04117.65
5.6.100.0140.02817.61
5.6.90.0080.04817.77
5.6.80.0080.03417.26
5.6.70.0070.00714.01
5.6.60.0040.01114.17
5.6.50.0090.00614.17
5.6.40.0080.00814.13
5.6.30.0100.00714.46
5.6.20.0070.00714.18
5.6.10.0090.00614.31
5.6.00.0030.00714.24
5.5.380.0000.01214.29
5.5.370.0040.00414.02
5.5.360.0060.00614.22
5.5.350.0030.03017.36
5.5.340.0070.02916.25
5.5.330.0060.02817.34
5.5.320.0380.04017.13
5.5.310.0180.03817.22
5.5.300.0080.02316.09
5.5.290.0060.04316.08
5.5.280.0020.04517.51
5.5.270.0080.04317.70
5.5.260.0030.04917.70
5.5.250.0050.05017.48
5.5.240.0140.03317.21
5.5.230.0030.01314.29
5.5.220.0090.00613.87
5.5.210.0070.00714.10
5.5.200.0040.01214.09
5.5.190.0080.00814.15
5.5.180.0100.00314.20
5.5.170.0090.00414.06
5.5.160.0000.01113.74
5.5.150.0100.00014.03
5.5.140.0070.00713.77
5.5.130.0070.01014.34
5.5.120.0030.00714.30
5.5.110.0000.00914.23
5.5.100.0000.01414.45
5.5.90.0100.00314.36
5.5.80.0120.00013.98
5.5.70.0000.01214.10
5.5.60.0070.00713.78
5.5.50.0030.00614.26
5.5.40.0000.01114.30
5.5.30.0030.00714.26
5.5.20.0070.01013.95
5.5.10.0040.00713.75
5.5.00.0030.00914.17

preferences:
81.91 ms | 400 KiB | 5 Q