3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { echo 'baz'; } } class Ex { public $a; public function __construct() { $this->a = new Foo; } public function doIt() { ${$this->a}::bar(); } } $a = new Ex(); $a->doIt();

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.0140.00718.45
8.3.50.0110.00621.09
8.3.40.0000.01518.97
8.3.30.0110.00418.82
8.3.20.0040.00420.24
8.3.10.0040.00421.80
8.3.00.0050.00222.39
8.2.180.0220.00016.34
8.2.170.0070.00722.96
8.2.160.0000.01419.23
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.37
8.2.110.0060.00322.16
8.2.100.0040.00719.38
8.2.90.0090.00019.20
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0000.00817.93
8.2.50.0100.00018.07
8.2.40.0000.00818.22
8.2.30.0040.00418.00
8.2.20.0080.00017.65
8.2.10.0050.00317.79
8.2.00.0040.00717.55
8.1.280.0070.00725.92
8.1.270.0060.00318.61
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0030.00623.86
8.1.230.0000.01119.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0050.00317.64
8.1.180.0030.00618.82
8.1.170.0000.00818.53
8.1.160.0030.00322.04
8.1.150.0040.00418.68
8.1.140.0040.00417.44
8.1.130.0050.00317.82
8.1.120.0040.00417.53
8.1.110.0030.00717.50
8.1.100.0000.00717.41
8.1.90.0000.00717.36
8.1.80.0030.00317.48
8.1.70.0070.00017.44
8.1.60.0090.00017.52
8.1.50.0040.00417.41
8.1.40.0000.00717.52
8.1.30.0030.00517.65
8.1.20.0050.00317.56
8.1.10.0030.00617.45
8.1.00.0050.00317.39
8.0.300.0070.00018.77
8.0.290.0050.00217.18
8.0.280.0070.00018.43
8.0.270.0000.00717.16
8.0.260.0000.00716.88
8.0.250.0000.00717.02
8.0.240.0060.00316.91
8.0.230.0030.00316.88
8.0.220.0030.00316.93
8.0.210.0030.00316.93
8.0.200.0040.00416.97
8.0.190.0040.00416.97
8.0.180.0040.00416.89
8.0.170.0050.00216.94
8.0.160.0030.00516.94
8.0.150.0000.00716.92
8.0.140.0030.00316.90
8.0.130.0030.00313.38
8.0.120.0000.00716.88
8.0.110.0040.00416.99
8.0.100.0050.00216.95
8.0.90.0070.00016.82
8.0.80.0100.00616.91
8.0.70.0040.00416.91
8.0.60.0050.00316.99
8.0.50.0000.00816.95
8.0.30.0110.00916.94
8.0.20.0150.00817.40
8.0.10.0040.00417.18
8.0.00.0060.01216.70
7.4.330.0000.00515.00
7.4.320.0040.00416.50
7.4.300.0030.00316.59
7.4.290.0030.00316.43
7.4.280.0030.00616.49
7.4.270.0000.00816.56
7.4.260.0000.00716.58
7.4.250.0000.00716.46
7.4.240.0020.00516.55
7.4.230.0000.00716.55
7.4.220.0120.00816.63
7.4.210.0050.00916.56
7.4.200.0000.00716.45
7.4.190.0000.00716.41
7.4.160.0060.00916.41
7.4.150.0070.01117.40
7.4.140.0080.00917.86
7.4.130.0070.00916.64
7.4.120.0080.00816.60
7.4.110.0030.01316.47
7.4.100.0100.01016.30
7.4.90.0090.00916.71
7.4.80.0080.01219.39
7.4.70.0120.00916.42
7.4.60.0120.01316.54
7.4.50.0000.00916.58
7.4.40.0070.01022.77
7.4.30.0040.01216.40
7.4.00.0090.00915.12
7.3.330.0050.00013.35
7.3.320.0000.00613.18
7.3.310.0000.00816.38
7.3.300.0000.00716.30
7.3.290.0130.00716.42
7.3.280.0050.00916.36
7.3.270.0150.00417.40
7.3.260.0120.00616.47
7.3.250.0070.01016.46
7.3.240.0050.01316.29
7.3.230.0100.01316.39
7.3.210.0090.00616.51
7.3.200.0080.00819.39
7.3.190.0120.00916.21
7.3.180.0110.00416.42
7.3.170.0120.00916.36
7.3.160.0140.00316.38
7.3.120.0100.00314.64
7.3.10.0030.00616.84
7.3.00.0030.01016.80
7.2.330.0070.01116.53
7.2.320.0110.01316.75
7.2.310.0070.00916.54
7.2.300.0100.01016.47
7.2.290.0160.00016.63
7.2.130.0090.00316.78
7.2.120.0110.00716.92
7.2.110.0080.00617.05
7.2.100.0000.01716.70
7.2.90.0070.00716.68
7.2.80.0060.01216.80
7.2.70.0100.00016.91
7.2.60.0050.01016.68
7.2.50.0060.00316.84
7.2.40.0000.01517.04
7.2.30.0090.00616.97
7.2.20.0060.00617.11
7.2.10.0040.01116.77
7.2.00.0070.00618.01
7.1.250.0030.00715.63
7.1.200.0080.00415.59
7.1.100.0190.00818.22
7.1.70.0000.01417.08
7.1.60.0070.01319.82
7.1.50.0050.00816.73
7.1.00.0030.05022.31
7.0.200.0000.00816.39
7.0.140.0100.06722.11
7.0.60.0100.05319.95
7.0.50.0100.06717.81
7.0.40.0030.05320.30
7.0.30.0230.05720.33
7.0.20.0270.05720.12
7.0.10.0270.04720.09
7.0.00.0030.04720.20
5.6.280.0070.07020.93
5.6.210.0070.07320.73
5.6.200.0030.09318.18
5.6.190.0070.04720.51
5.6.180.3370.04020.64
5.6.170.0330.06720.51
5.6.160.0100.07320.51
5.6.150.0100.07018.12
5.6.140.0130.06318.23
5.6.130.0030.08318.24
5.6.120.0130.07020.90
5.6.110.0100.06321.01
5.6.100.0130.07721.11
5.6.90.0130.07720.98
5.6.80.0100.06720.48
5.6.70.0200.05320.35
5.5.350.0170.08720.45
5.5.340.0000.05017.98
5.5.330.0030.06320.57
5.5.320.0200.05720.27
5.5.310.0300.08320.41
5.5.300.0100.05718.03
5.5.290.0100.07317.98
5.5.280.0070.05320.66
5.5.270.0100.05320.89
5.5.260.0030.04020.77
5.5.250.0070.03720.62
5.5.240.0030.06320.16
5.4.450.0800.04319.20
5.4.440.0630.06019.48
5.4.430.0170.05019.16
5.4.420.0700.06319.19
5.4.410.0770.04719.25
5.4.400.0400.05018.86
5.4.390.0330.07718.47
5.4.380.0330.07018.73
5.4.370.0170.05018.76
5.4.360.0170.05018.79
5.4.350.0070.04112.03
5.4.340.0100.03612.02
5.4.320.0070.03612.50
5.4.310.0090.04012.50
5.4.300.0070.04112.50
5.4.290.0060.03912.50
5.4.280.0050.03612.40
5.4.270.0080.03312.39
5.4.260.0060.04612.40
5.4.250.0030.08018.94
5.4.240.0170.07018.95
5.4.230.0030.05718.95
5.4.220.0100.05719.07
5.4.210.0030.05718.98
5.4.200.0070.07319.01
5.4.190.0100.05018.98
5.4.180.0030.05318.97
5.4.170.0070.06319.03
5.4.160.0070.05318.92
5.4.150.0030.06018.91
5.4.140.0200.05716.58
5.4.130.0100.04716.53
5.4.120.0030.07316.43
5.4.110.0070.05016.55
5.4.100.0100.05316.38
5.4.90.0170.04316.63
5.4.80.0170.04316.43
5.4.70.0130.05016.52
5.4.60.0070.06016.34
5.4.50.0000.05716.51
5.4.40.0170.04016.63
5.4.30.0130.04716.50
5.4.20.0070.06016.47
5.4.10.0100.05016.57
5.4.00.0030.06015.72
5.3.290.0070.04712.80
5.3.280.0070.05314.66
5.3.270.0100.05014.59
5.3.260.0070.05714.79
5.3.250.0130.06314.61
5.3.240.0200.04714.83
5.3.230.0200.05014.68
5.3.220.0230.04714.54
5.3.210.0030.05314.55
5.3.200.0070.05714.63
5.3.190.0130.04714.73
5.3.180.0170.05714.65
5.3.170.0170.04014.70
5.3.160.0070.04714.39
5.3.150.0100.04714.74
5.3.140.0070.06714.39
5.3.130.0100.05314.45
5.3.120.0100.05014.63
5.3.110.0030.06014.64
5.3.100.0170.06013.87
5.3.90.0070.07014.09
5.3.80.0070.05014.01
5.3.70.0130.06714.10
5.3.60.0130.04713.97
5.3.50.0100.04714.03
5.3.40.0230.04014.04
5.3.30.0030.05313.91
5.3.20.0100.04713.69
5.3.10.0100.06013.73
5.3.00.0070.05013.72
5.2.170.0100.03711.14
5.2.160.0130.04311.32
5.2.150.0100.04011.13
5.2.140.0030.04311.32
5.2.130.0100.03711.33
5.2.120.0100.04311.01
5.2.110.0130.03311.27
5.2.100.0130.03711.19
5.2.90.0030.04711.17
5.2.80.0030.05711.09
5.2.70.0070.05311.16
5.2.60.0130.03711.21
5.2.50.0100.05311.03
5.2.40.0030.04311.08
5.2.30.0100.04311.04
5.2.20.0130.03711.09
5.2.10.0070.05011.09
5.2.00.0030.04310.67
5.1.60.0070.0379.98
5.1.50.0130.0279.84
5.1.40.0070.0509.91
5.1.30.0030.03710.41
5.1.20.0100.04010.44
5.1.10.0130.04310.14
5.1.00.0070.04710.08
5.0.50.0070.0278.52
5.0.40.0000.0308.39
5.0.30.0000.0608.32
5.0.20.0070.0338.20
5.0.10.0030.0278.14
5.0.00.0030.0438.00
4.4.90.0000.0337.06
4.4.80.0000.0237.06
4.4.70.0000.0337.06
4.4.60.0000.0237.06
4.4.50.0030.0237.06
4.4.40.0000.0477.06
4.4.30.0000.0237.06
4.4.20.0070.0237.06
4.4.10.0070.0277.06
4.4.00.0000.0377.06
4.3.110.0000.0237.06
4.3.100.0070.0277.06
4.3.90.0030.0277.06
4.3.80.0100.0277.06
4.3.70.0000.0237.06
4.3.60.0070.0337.06
4.3.50.0030.0237.06
4.3.40.0030.0337.06
4.3.30.0000.0237.06
4.3.20.0000.0237.06
4.3.10.0070.0237.06
4.3.00.0100.0236.72

preferences:
42.62 ms | 401 KiB | 5 Q