3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function hello() { echo "Hello !"; } } class Bar { public $apple = null; public function __construct() { $this->apple = new Foo(); } } $foo = new Bar(); ($foo->apple)::hello();

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.70.0100.01016.50
8.3.60.0090.00918.43
8.3.50.0220.00922.05
8.3.40.0110.00418.70
8.3.30.0110.00319.14
8.3.20.0070.00720.35
8.3.10.0080.00023.70
8.3.00.0030.00620.75
8.2.180.0140.00716.75
8.2.170.0070.00722.96
8.2.160.0160.00322.11
8.2.150.0040.00424.18
8.2.140.0070.01424.66
8.2.130.0080.00026.16
8.2.120.0000.00817.75
8.2.110.0030.00622.26
8.2.100.0040.00817.58
8.2.90.0000.00819.08
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0080.00017.68
8.2.50.0040.00418.07
8.2.40.0030.00518.31
8.2.30.0070.00518.01
8.2.20.0050.00217.51
8.2.10.0040.00417.69
8.2.00.0000.00717.58
8.1.280.0070.01725.92
8.1.270.0070.00023.77
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00623.87
8.1.230.0040.00819.08
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.51
8.1.180.0060.00318.10
8.1.170.0080.00018.61
8.1.160.0040.00421.87
8.1.150.0060.00318.45
8.1.140.0050.00317.43
8.1.130.0070.00017.71
8.1.120.0000.00717.39
8.1.110.0040.00417.25
8.1.100.0030.00317.42
8.1.90.0050.00617.30
8.1.80.0030.00317.37
8.1.70.0020.00517.35
8.1.60.0030.00717.60
8.1.50.0030.00517.55
8.1.40.0040.00417.50
8.1.30.0060.00317.64
8.1.20.0000.00817.63
8.1.10.0030.00617.43
8.1.00.0050.00217.49
8.0.300.0040.00418.77
8.0.290.0090.00017.05
8.0.280.0070.00018.38
8.0.270.0030.00317.22
8.0.260.0060.00016.87
8.0.250.0030.00316.78
8.0.240.0040.00416.77
8.0.230.0000.00816.86
8.0.220.0070.00016.88
8.0.210.0000.00716.81
8.0.200.0030.00316.87
8.0.190.0070.00016.89
8.0.180.0030.00416.79
8.0.170.0040.00416.86
8.0.160.0000.00716.79
8.0.150.0000.00716.86
8.0.140.0070.00016.68
8.0.130.0030.00313.22
8.0.120.0070.00016.70
8.0.110.0020.00516.65
8.0.100.0040.00416.81
8.0.90.0000.00716.79
8.0.80.0030.01716.83
8.0.70.0000.00816.66
8.0.60.0000.00816.71
8.0.50.0000.00816.63
8.0.30.0070.01616.93
8.0.20.0120.00717.40
8.0.10.0000.00716.82
8.0.00.0130.00716.78
7.4.330.0020.00215.07
7.4.320.0000.00716.55
7.4.300.0000.00716.62
7.4.290.0030.00316.36
7.4.280.0030.00316.49
7.4.270.0030.00316.40
7.4.260.0000.00716.45
7.4.250.0070.00016.46
7.4.240.0030.00416.56
7.4.230.0030.00316.48
7.4.220.0120.01216.63
7.4.210.0070.00916.56
7.4.200.0030.00316.68
7.4.190.0000.00716.62
7.4.160.0060.00916.31
7.4.150.0070.01117.40
7.4.140.0100.00717.86
7.4.130.0070.01016.60
7.4.120.0140.00516.56
7.4.110.0030.01516.50
7.4.100.0140.00616.61
7.4.90.0130.00916.67
7.4.80.0030.01716.61
7.4.70.0190.00316.31
7.4.60.0090.00916.43
7.4.50.0090.00016.44
7.4.40.0060.00922.77
7.4.30.0130.00316.53
7.4.00.0000.00714.79
7.3.330.0000.00513.37
7.3.320.0050.00013.16
7.3.310.0040.00416.26
7.3.300.0030.00316.30
7.3.290.0120.00316.34
7.3.280.0090.00816.30
7.3.270.0110.00617.40
7.3.260.0090.00916.21
7.3.250.0140.00416.40
7.3.240.0100.00716.38
7.3.230.0030.01416.39
7.3.210.0090.00916.42
7.3.200.0060.01619.39
7.3.190.0130.00316.31
7.3.180.0100.00716.39
7.3.170.0080.00716.30
7.3.160.0070.01016.61
7.3.120.0030.01414.79
7.3.10.0040.01016.34
7.3.00.0070.00816.54
7.2.330.0160.00316.48
7.2.320.0120.01116.70
7.2.310.0140.00716.36
7.2.300.0140.00716.42
7.2.290.0090.01216.66
7.2.130.0100.00216.80
7.2.120.0080.00516.90
7.2.110.0040.01216.81
7.2.100.0090.00316.76
7.2.90.0060.00616.88
7.2.80.0030.00816.97
7.2.70.0030.00916.76
7.2.60.0060.00616.83
7.2.50.0050.00716.89
7.2.40.0060.00616.79
7.2.30.0050.01016.91
7.2.20.0060.00716.82
7.2.10.0090.00516.87
7.2.00.0060.00917.79
7.1.250.0060.00615.72
7.1.240.0000.01215.80
7.1.230.0060.00615.77
7.1.220.0030.01315.61
7.1.210.0130.00715.48
7.1.200.0070.00815.78
7.1.190.0130.00715.57
7.1.180.0070.01015.71
7.1.170.0060.01315.69
7.1.160.0000.01015.65
7.1.150.0070.00715.65
7.1.140.0090.00915.74
7.1.130.0070.00315.86
7.1.120.0110.00715.40
7.1.110.0040.00715.70
7.1.100.0060.00616.93
7.1.90.0050.00315.83
7.1.80.0050.00315.77
7.1.70.0080.00616.40
7.1.60.0070.00517.43
7.1.50.0060.00816.18
7.1.40.0120.00615.69
7.1.30.0130.00315.60
7.1.20.0070.00715.66
7.1.10.0090.00315.45
7.1.00.0080.04018.91
7.0.330.0000.01115.12
7.0.320.0000.01115.37
7.0.310.0060.00615.36
7.0.300.0070.01115.31
7.0.290.0060.00315.45
7.0.280.0030.01015.07
7.0.270.0100.00715.06
7.0.260.0060.00615.17
7.0.250.0040.01115.46
7.0.240.0110.00315.20
7.0.230.0070.00715.34
7.0.220.0090.00615.43
7.0.210.0000.01115.28
7.0.200.0050.00516.02
7.0.190.0040.00415.36
7.0.180.0060.00315.12
7.0.170.0060.00315.16
7.0.160.0130.00315.45
7.0.150.0030.00715.32
7.0.140.0090.03618.70
7.0.130.0040.01115.09
7.0.120.0050.00515.36
7.0.110.0100.00315.11
7.0.100.0100.00715.27
7.0.90.0040.01114.95
7.0.80.0100.00315.33
7.0.70.0080.00815.49
7.0.60.0030.03317.61
7.0.50.0100.04016.73
7.0.40.0110.02716.75
7.0.30.0080.03416.91
7.0.20.0220.03216.77
7.0.10.0080.02716.83
7.0.00.0080.04516.64
5.6.380.0030.00614.27
5.6.370.0030.00913.82
5.6.360.0100.00614.32
5.6.350.0070.01014.13
5.6.340.0070.00714.12
5.6.330.0060.00614.09
5.6.320.0070.00714.24
5.6.310.0030.01014.07
5.6.300.0000.00814.27
5.6.290.0090.00614.04
5.6.280.0070.03817.57
5.6.270.0070.00714.21
5.6.260.0040.00814.27
5.6.250.0030.00714.13
5.6.240.0100.00714.17
5.6.230.0150.00914.30
5.6.220.0060.00914.02
5.6.210.0070.02517.40
5.6.200.0130.04016.14
5.6.190.0100.03817.31
5.6.180.0210.03817.10
5.6.170.0200.04217.19
5.6.160.0150.03817.28
5.6.150.0090.03316.22
5.6.140.0120.04216.14
5.6.130.0070.03316.09
5.6.120.0100.04517.46
5.6.110.0110.04217.50
5.6.100.0100.02517.45
5.6.90.0150.04217.35
5.6.80.0070.03017.22
5.6.70.0080.01214.11
5.6.60.0130.00013.89
5.6.50.0100.00314.18
5.6.40.0170.00713.96
5.6.30.0140.00313.85
5.6.20.0170.00013.99
5.6.10.0150.00414.13
5.6.00.0090.00614.03
5.5.380.0170.00010.73
5.5.370.0110.00010.79
5.5.360.0110.00410.75
5.5.350.0140.03915.63
5.5.340.0050.02814.39
5.5.330.0080.03815.65
5.5.320.0230.03815.61
5.5.310.0180.04315.54
5.5.300.0030.02514.33
5.5.290.0030.02514.48
5.5.280.0100.03415.88
5.5.270.0050.04515.82
5.5.260.0100.04515.87
5.5.250.0090.03215.75
5.5.240.2130.02515.52
5.5.230.0030.01010.59
5.5.220.0060.00310.61
5.5.210.0120.00310.75
5.5.200.0070.00010.70
5.5.190.0140.00310.96
5.5.180.0000.00610.98
5.5.170.0110.00410.85
5.5.160.0030.00610.65
5.5.150.0000.00810.74
5.5.140.0160.00310.91
5.5.130.0090.00010.80
5.5.120.0150.00010.89
5.5.110.0170.00310.53
5.5.100.0130.00610.73
5.5.90.0070.00311.05
5.5.80.0150.00410.70
5.5.70.0060.00010.68
5.5.60.0030.00610.91
5.5.50.0060.00010.87
5.5.40.0030.00910.73
5.5.30.0080.00310.60
5.5.20.0000.00710.44
5.5.10.0080.00310.76
5.5.00.0070.00710.42
5.4.450.0350.03015.09
5.4.440.0420.03414.98
5.4.430.0460.03614.94
5.4.420.0530.04115.24
5.4.410.0330.03814.91
5.4.400.0130.03714.93
5.4.390.0400.02614.70
5.4.380.0150.03214.72
5.4.370.0090.02914.64
5.4.360.0020.03614.87
5.4.350.0070.03314.60
5.4.340.0200.03314.74
5.4.330.0130.00410.45
5.4.320.0110.02211.58
5.4.310.0110.02411.59
5.4.300.0070.02611.61
5.4.290.0110.02211.65
5.4.280.0120.02411.57
5.4.270.0050.02411.52
5.4.260.0050.02311.43
5.4.250.0080.02411.43
5.4.240.0050.02411.61
5.4.230.0050.02111.64
5.4.220.0070.02111.69
5.4.210.0090.01911.53
5.4.200.0060.02711.63
5.4.190.0080.02511.60
5.4.180.0070.02711.56
5.4.170.0130.02111.62
5.4.160.0110.02311.55
5.4.150.0150.03511.49
5.4.140.0100.02511.44
5.4.130.0120.02411.51
5.4.120.0130.02211.34
5.4.110.0240.04111.38
5.4.100.0110.02411.45
5.4.90.0100.02711.32
5.4.80.0160.03311.42
5.4.70.0120.02211.30
5.4.60.0170.04811.44
5.4.50.0100.02411.49
5.4.40.0120.02111.46
5.4.30.0110.02411.29
5.4.20.0160.02611.42
5.4.10.0120.02311.42
5.4.00.0150.02611.16
5.3.290.0090.02311.59
5.3.280.0060.02311.50
5.3.270.0080.02611.53
5.3.260.0130.02111.51
5.3.250.0100.02511.49
5.3.240.0100.02411.46
5.3.230.0090.02611.45
5.3.220.0130.02311.46
5.3.210.0110.02611.48
5.3.200.0090.02511.35
5.3.190.0200.04511.48
5.3.180.0110.02411.61
5.3.170.0120.02511.56
5.3.160.0090.03011.46
5.3.150.0110.02411.56
5.3.140.0100.02611.54
5.3.130.0160.02411.49
5.3.120.0110.02411.40
5.3.110.0170.02111.45
5.3.100.0140.02411.18
5.3.90.0140.03611.26
5.3.80.0100.02411.20
5.3.70.0150.02411.19
5.3.60.0160.02411.19
5.3.50.0160.02711.09
5.3.40.0210.03911.14
5.3.30.0150.02311.01
5.3.20.0140.02311.01
5.3.10.0090.02410.91
5.3.00.0120.02310.90
5.2.170.0100.0219.28
5.2.160.0090.0189.28
5.2.150.0100.0199.27
5.2.140.0090.0219.24
5.2.130.0100.0209.23
5.2.120.0060.0239.23
5.2.110.0190.0389.24
5.2.100.0070.0199.22
5.2.90.0070.0229.22
5.2.80.0060.0229.21
5.2.70.0070.0229.23
5.2.60.0070.0229.19
5.2.50.0170.0439.18
5.2.40.0100.0219.16
5.2.30.0080.0219.15
5.2.20.0130.0169.15
5.2.10.0110.0189.10
5.2.00.0100.0189.03
5.1.60.0090.0168.67
5.1.50.0060.0188.67
5.1.40.0110.0128.66
5.1.30.0190.0168.84
5.1.20.0190.0408.85
5.1.10.0100.0158.71
5.1.00.0140.0158.71
5.0.50.0080.0157.95
5.0.40.0120.0127.88
5.0.30.0060.0217.79
5.0.20.0060.0157.77
5.0.10.0060.0147.76
5.0.00.0120.0187.75
4.4.90.0070.0087.03
4.4.80.0170.0287.01
4.4.70.0040.0127.01
4.4.60.0030.0137.02
4.4.50.0070.0097.02
4.4.40.0060.0156.99
4.4.30.0130.0337.01
4.4.20.0090.0107.06
4.4.10.0090.0107.06
4.4.00.0100.0157.01
4.3.110.0080.0076.97
4.3.100.0120.0106.97
4.3.90.0040.0126.95
4.3.80.0040.0166.93
4.3.70.0090.0116.95
4.3.60.0060.0116.95
4.3.50.0060.0106.95
4.3.40.0050.0166.90
4.3.30.0010.0136.29
4.3.20.0050.0106.28
4.3.10.0040.0096.26
4.3.00.0080.0138.90

preferences:
39.76 ms | 401 KiB | 5 Q