3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { public $hidden; static function doSomething($obj) { unset($obj); } function __call($name, $arguments) { echo 'hello from overload'; } } class Bar { use Foo; function hello() { echo 'hello from bar'; } } $foo = new Bar(); Bar::doSomething($foo); $foo->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.60.0150.00618.43
8.3.50.0110.00921.02
8.3.40.0170.00318.89
8.3.30.0070.00719.05
8.3.20.0110.00720.39
8.3.10.0000.00922.09
8.3.00.0030.01022.34
8.2.180.0100.01416.63
8.2.170.0110.00322.96
8.2.160.0140.00019.07
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.54
8.2.110.0090.00020.83
8.2.100.0030.00917.72
8.2.90.0080.00017.91
8.2.80.0020.00518.03
8.2.70.0080.00017.63
8.2.60.0040.00417.63
8.2.50.0000.00917.50
8.2.40.0030.00518.05
8.2.30.0000.00818.11
8.2.20.0050.00217.52
8.2.10.0070.00017.63
8.2.00.0000.00717.67
8.1.280.0070.01125.92
8.1.270.0090.00022.19
8.1.260.0150.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00923.98
8.1.230.0120.00020.91
8.1.220.0040.00417.75
8.1.210.0050.00518.79
8.1.200.0030.00517.36
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0050.00322.08
8.1.150.0040.00418.78
8.1.140.0040.00417.44
8.1.130.0030.00617.89
8.1.120.0000.00717.51
8.1.110.0050.00317.39
8.1.100.0050.00217.36
8.1.90.0030.00317.46
8.1.80.0080.00017.52
8.1.70.0000.00717.47
8.1.60.0060.00317.63
8.1.50.0000.00817.53
8.1.40.0000.00717.59
8.1.30.0030.00617.54
8.1.20.0090.00017.59
8.1.10.0000.00717.59
8.1.00.0000.00817.46
8.0.300.0000.00719.87
8.0.290.0040.00416.63
8.0.280.0070.00018.45
8.0.270.0000.00717.14
8.0.260.0030.00316.83
8.0.250.0030.00316.88
8.0.240.0030.00516.96
8.0.230.0040.00416.84
8.0.220.0070.00016.93
8.0.210.0030.00316.80
8.0.200.0000.00716.96
8.0.190.0100.00016.85
8.0.180.0050.00216.97
8.0.170.0040.00416.95
8.0.160.0000.00716.93
8.0.150.0000.00716.72
8.0.140.0030.00316.84
8.0.130.0030.00313.32
8.0.120.0070.00016.79
8.0.110.0040.00416.97
8.0.100.0020.00516.78
8.0.90.0040.00416.75
8.0.80.0030.01316.80
8.0.70.0040.00416.95
8.0.60.0040.00416.70
8.0.50.0040.00416.79
8.0.30.0090.00916.97
8.0.20.0120.00817.40
8.0.10.0070.00016.90
8.0.00.0080.00816.66
7.4.330.0000.00516.67
7.4.320.0060.00016.50
7.4.300.0030.00316.54
7.4.290.0070.00016.62
7.4.280.0000.00816.60
7.4.270.0000.00716.64
7.4.260.0040.00416.54
7.4.250.0040.00416.62
7.4.240.0020.00516.64
7.4.230.0000.00716.51
7.4.220.0060.01016.38
7.4.210.0100.00516.54
7.4.200.0030.00316.40
7.4.190.0030.00516.47
7.4.160.0140.00516.43
7.4.150.0140.00317.40
7.4.140.0130.00517.86
7.4.130.0090.00816.65
7.4.120.0070.00916.49
7.4.110.0140.00316.48
7.4.100.0130.00416.49
7.4.90.0030.01316.43
7.4.80.0090.00819.39
7.4.70.0070.01316.53
7.4.60.0090.00916.56
7.4.50.0050.00216.31
7.4.40.0080.00322.77
7.4.30.0030.01316.74
7.4.00.0070.01014.89
7.3.330.0050.00013.25
7.3.320.0000.00613.20
7.3.310.0030.00316.29
7.3.300.0040.00416.28
7.3.290.0060.01016.25
7.3.280.0030.01216.22
7.3.270.0100.00717.40
7.3.260.0070.01016.25
7.3.250.0050.01216.39
7.3.240.0130.00416.48
7.3.230.0070.01416.39
7.3.210.0060.01116.63
7.3.200.0100.00719.39
7.3.190.0030.01416.54
7.3.180.0060.00916.41
7.3.170.0090.00616.52
7.3.160.0070.01016.48
7.3.120.0100.00714.45
7.2.330.0080.00816.59
7.2.320.0110.01216.73
7.2.310.0030.01416.70
7.2.300.0090.00916.64
7.2.290.0070.01016.45
7.1.100.0590.00715.95
7.1.70.0000.00816.98
7.1.60.0100.01319.82
7.1.50.0140.01117.04
7.1.00.0030.03322.37
7.0.200.0040.00416.73
7.0.140.0070.07022.15
7.0.60.0000.09019.86
7.0.50.0100.06717.97
7.0.40.0100.08320.15
7.0.30.0230.03720.21
7.0.20.0230.08320.23
7.0.10.0130.08320.15
7.0.00.0030.04320.06
5.6.210.0100.07020.73
5.6.200.0130.07718.24
5.6.190.0070.07320.34
5.6.180.0270.07720.64
5.6.170.0230.05720.71
5.6.160.0130.05020.55
5.6.150.0070.08018.18
5.6.140.0070.05018.23
5.6.130.0100.03718.15
5.6.120.0130.07720.97
5.6.110.0030.07721.14
5.6.100.0130.06321.09
5.6.90.0030.04321.02
5.6.80.0200.06720.46
5.5.350.0000.07320.54
5.5.340.0100.06318.02
5.5.330.0070.08320.42
5.5.320.0470.06020.27
5.5.310.0400.08020.23
5.5.300.0070.06718.08
5.5.290.0000.04718.00
5.5.280.0130.07320.81
5.5.270.0100.04720.96
5.5.260.0100.08320.86
5.5.250.0070.08020.55
5.5.240.0230.07320.27
5.4.450.0470.03319.16
5.4.440.0400.03319.20
5.4.430.0770.04019.40
5.4.420.1300.03719.52
5.4.410.0630.03319.27
5.4.400.1300.03019.32
5.4.390.0470.03318.95
5.4.380.0600.05018.52
5.4.370.1030.04718.68
5.4.360.0970.04718.72
5.4.350.0770.05018.56
5.4.340.0900.05018.70
5.4.320.0030.03812.51
5.4.310.0070.03512.50
5.4.300.0060.03512.50
5.4.290.0040.03912.50
5.4.280.0070.03712.39
5.4.270.0070.03412.39
5.4.260.0100.05018.77
5.4.250.0130.06018.73
5.4.240.0170.04718.88
5.4.230.0200.05718.64
5.4.220.0070.06718.64
5.4.210.0030.06018.72
5.4.200.0130.05018.91
5.4.190.0130.05318.74
5.4.180.0030.06318.92
5.4.170.0100.05318.92
5.4.160.0130.05318.98
5.4.150.0070.07018.91
5.4.140.0000.06016.55
5.4.130.0000.05716.50
5.4.120.0130.04316.56
5.4.110.0070.05716.51
5.4.100.0070.05316.47
5.4.90.0030.05316.68
5.4.80.0100.05316.53
5.4.70.0070.05016.45
5.4.60.0130.04316.51
5.4.50.0130.04016.50
5.4.40.0170.04016.29
5.4.30.0030.05316.35
5.4.20.0070.05016.60
5.4.10.0070.05716.24
5.4.00.0100.05015.96
5.3.290.0060.03812.80
5.3.280.0070.07314.29
5.3.270.0130.05314.70
5.3.260.0130.07314.64
5.3.250.0300.05714.45
5.3.240.0130.07714.61
5.3.230.0070.05314.75
5.3.220.0070.05014.27
5.3.210.0070.05314.59
5.3.200.0070.05314.71
5.3.190.0100.05014.56
5.3.180.0100.04714.26
5.3.170.0200.04014.48
5.3.160.0070.05014.41
5.3.150.0100.07314.41
5.3.140.0100.07014.57
5.3.130.0130.05014.55
5.3.120.0100.07714.60
5.3.110.0170.06014.25
5.3.100.0030.05713.92
5.3.90.0070.05313.87
5.3.80.0030.05714.07
5.3.70.0100.06314.04
5.3.60.0100.06713.99
5.3.50.0100.05013.83
5.3.40.0070.05713.95
5.3.30.0030.07313.91
5.3.20.0230.05313.74
5.3.10.0030.05013.59
5.3.00.0100.05013.58
5.2.170.0100.04011.15
5.2.160.0070.04011.13
5.2.150.0030.04711.16
5.2.140.0130.05010.97
5.2.130.0070.05711.03
5.2.120.0030.05711.03
5.2.110.0100.03310.93
5.2.100.0130.05010.98
5.2.90.0030.05011.19
5.2.80.0100.03711.02
5.2.70.0070.04311.09
5.2.60.0030.04311.21
5.2.50.0170.04310.90
5.2.40.0070.05710.91
5.2.30.0030.06311.08
5.2.20.0070.03710.96
5.2.10.0130.04010.84
5.2.00.0100.03710.80
5.1.60.0030.0479.91
5.1.50.0000.0379.93
5.1.40.0100.03010.13
5.1.30.0100.02710.39
5.1.20.0100.04010.26
5.1.10.0100.04310.09
5.1.00.0100.0309.84
5.0.50.0030.0278.62
5.0.40.0030.0308.36
5.0.30.0070.0407.98
5.0.20.0030.0338.18
5.0.10.0030.0278.20
5.0.00.0030.0438.30
4.4.90.0000.0337.44
4.4.80.0000.0337.44
4.4.70.0000.0237.44
4.4.60.0030.0277.44
4.4.50.0030.0277.44
4.4.40.0000.0507.44
4.4.30.0030.0207.44
4.4.20.0030.0237.44
4.4.10.0030.0307.44
4.4.00.0000.0337.44
4.3.110.0030.0207.44
4.3.100.0000.0237.44
4.3.90.0000.0237.44
4.3.80.0030.0337.44
4.3.70.0030.0237.44
4.3.60.0030.0237.44
4.3.50.0030.0237.44
4.3.40.0000.0337.44
4.3.30.0000.0237.44
4.3.20.0000.0277.44
4.3.10.0000.0237.44
4.3.00.0270.01312.80

preferences:
57.39 ms | 401 KiB | 5 Q