3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { public $hidden; function __call($name, $arguments) { echo 'hello from overload'; } } class Bar { use Foo; function hello() { echo 'hello from bar'; } } class Cheese { static function deleteMe($obj) { var_dump($obj); unset($obj); } } $foo = new Bar(); Cheese::deleteMe($foo); gc_collect_cycles(); $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.0070.00718.43
8.3.50.0100.00722.01
8.3.40.0140.00018.87
8.3.30.0110.00319.05
8.3.20.0070.00020.34
8.3.10.0040.00423.66
8.3.00.0100.00020.54
8.2.180.0090.00616.38
8.2.170.0070.00722.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0110.00726.16
8.2.120.0070.00722.31
8.2.110.0140.00322.31
8.2.100.0090.00317.84
8.2.90.0040.00419.22
8.2.80.0050.00318.03
8.2.70.0060.00317.50
8.2.60.0070.00318.04
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00718.12
8.2.20.0000.00717.56
8.2.10.0000.00717.63
8.2.00.0040.00417.66
8.1.280.0070.01425.92
8.1.270.0000.00824.02
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0000.00823.88
8.1.230.0110.00018.99
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00617.35
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0090.00318.49
8.1.160.0070.00021.89
8.1.150.0020.00518.63
8.1.140.0030.00617.48
8.1.130.0000.00717.79
8.1.120.0000.00817.48
8.1.110.0040.00417.50
8.1.100.0000.00817.46
8.1.90.0070.00017.34
8.1.80.0030.00317.41
8.1.70.0030.00317.36
8.1.60.0060.00317.54
8.1.50.0030.00517.56
8.1.40.0060.00317.40
8.1.30.0050.00317.48
8.1.20.0000.00817.71
8.1.10.0050.00317.56
8.1.00.0080.00017.52
8.0.300.0070.00018.77
8.0.290.0080.00017.16
8.0.280.0000.00718.36
8.0.270.0030.00317.32
8.0.260.0080.00016.80
8.0.250.0070.00017.00
8.0.240.0000.00716.86
8.0.230.0000.00716.89
8.0.220.0030.00316.88
8.0.210.0000.00716.89
8.0.200.0030.00316.99
8.0.190.0050.00316.84
8.0.180.0000.00716.80
8.0.170.0000.00816.90
8.0.160.0000.00716.83
8.0.150.0030.00316.76
8.0.140.0040.00416.87
8.0.130.0080.00013.28
8.0.120.0000.00916.91
8.0.110.0040.00416.78
8.0.100.0000.00717.00
8.0.90.0000.00716.96
8.0.80.0040.01016.88
8.0.70.0050.00216.73
8.0.60.0060.00316.86
8.0.50.0070.00016.87
8.0.30.0080.01217.14
8.0.20.0050.01717.40
8.0.10.0040.00417.03
8.0.00.0090.01016.76
7.4.330.0000.00615.14
7.4.320.0060.00016.64
7.4.300.0000.00616.59
7.4.290.0070.00016.59
7.4.280.0030.00316.61
7.4.270.0030.00316.40
7.4.260.0000.00716.48
7.4.250.0050.00216.52
7.4.240.0030.00316.65
7.4.230.0030.00316.48
7.4.220.0070.01116.43
7.4.210.0050.01016.51
7.4.200.0070.00016.63
7.4.190.0040.00416.69
7.4.160.0130.00416.51
7.4.150.0100.00717.40
7.4.140.0120.00617.86
7.4.130.0100.01016.48
7.4.120.0090.00916.48
7.4.110.0030.01316.71
7.4.100.0070.01016.42
7.4.90.0090.00916.59
7.4.80.0070.01216.44
7.4.70.0090.01216.41
7.4.60.0090.00916.42
7.4.50.0030.00616.55
7.4.40.0120.00622.77
7.4.30.0030.01316.46
7.4.10.0030.01615.01
7.4.00.0050.01314.80
7.3.330.0060.00013.12
7.3.320.0050.00013.29
7.3.310.0040.00216.22
7.3.300.0000.00716.25
7.3.290.0110.00716.26
7.3.280.0090.00816.26
7.3.270.0110.00717.40
7.3.260.0070.01016.25
7.3.250.0110.01016.47
7.3.240.0080.00816.48
7.3.230.0080.00816.48
7.3.210.0100.00616.37
7.3.200.0110.00919.39
7.3.190.0000.01716.46
7.3.180.0160.00616.38
7.3.170.0060.00916.33
7.3.160.0060.00916.46
7.3.130.0040.01114.48
7.3.120.0040.01114.78
7.3.110.0030.01314.85
7.3.100.0120.00014.80
7.3.90.0090.00614.48
7.3.80.0070.00414.69
7.3.70.0070.00314.76
7.3.60.0070.00714.69
7.3.50.0000.01514.56
7.3.40.0060.00914.70
7.3.30.0040.00714.47
7.3.20.0030.01016.74
7.3.10.0030.00816.43
7.3.00.0090.00616.62
7.2.330.0160.00716.58
7.2.320.0070.01116.44
7.2.310.0090.00916.48
7.2.300.0070.01116.44
7.2.290.0090.00616.47
7.2.260.0070.01414.84
7.2.250.0090.01014.72
7.2.240.0030.01314.64
7.2.230.0040.01514.77
7.2.220.0130.00015.20
7.2.210.0000.01414.89
7.2.200.0100.00314.77
7.2.190.0030.00915.00
7.2.180.0070.00814.68
7.2.170.0060.01015.07
7.2.160.0000.01314.88
7.2.150.0100.00616.91
7.2.140.0000.01416.95
7.2.130.0070.00916.88
7.2.120.0030.00816.67
7.2.110.0080.00616.88
7.2.100.0070.00716.73
7.2.90.0040.00916.89
7.2.80.0030.01017.00
7.2.70.0070.00716.77
7.2.60.0050.00816.88
7.2.50.0080.00416.73
7.2.40.0030.00816.66
7.2.30.0080.01316.84
7.2.20.0080.00616.67
7.2.10.0090.00616.76
7.2.00.0060.00916.89
7.1.330.0070.00715.66
7.1.320.0060.00315.93
7.1.310.0000.01315.64
7.1.300.0040.01115.81
7.1.290.0060.01215.57
7.1.280.0030.01515.73
7.1.270.0030.00615.60
7.1.260.0030.00715.71
7.1.250.0060.00715.73
7.1.240.0060.00615.48
7.1.230.0020.01015.75
7.1.220.0020.01215.79
7.1.210.0020.01215.80
7.1.200.0030.00815.77
7.1.190.0050.00815.71
7.1.180.0020.01215.67
7.1.170.0060.00315.82
7.1.160.0070.00615.79
7.1.150.0020.00815.84
7.1.140.0050.00715.71
7.1.130.0050.00815.64
7.1.120.0070.00515.54
7.1.110.0020.01415.75
7.1.100.0050.00716.50
7.1.90.0080.00515.77
7.1.80.0020.00815.82
7.1.70.0060.00416.20
7.1.60.0040.01216.95
7.1.50.0090.00716.17
7.1.40.0020.00615.68
7.1.30.0020.01115.94
7.1.20.0050.00615.70
7.1.10.0050.00715.75
7.1.00.0040.03117.87
7.0.330.0070.00415.45
7.0.320.0020.01415.49
7.0.310.0030.00715.32
7.0.300.0060.00515.41
7.0.290.0030.00915.38
7.0.280.0050.00615.16
7.0.270.0060.00615.28
7.0.260.0030.00815.32
7.0.250.0040.00815.43
7.0.240.0050.00715.42
7.0.230.0030.00815.21
7.0.220.0010.01015.26
7.0.210.0040.00415.14
7.0.200.0030.00915.78
7.0.190.0060.00715.46
7.0.180.0000.01015.29
7.0.170.0020.00815.47
7.0.160.0080.00615.48
7.0.150.0110.00215.50
7.0.140.0030.03117.69
7.0.130.0020.01115.55
7.0.120.0090.00515.37
7.0.110.0040.01015.56
7.0.100.0090.00315.41
7.0.90.0040.00515.46
7.0.80.0020.01215.18
7.0.70.0050.00715.38
7.0.60.0080.01917.48
7.0.50.0070.02816.26
7.0.40.0070.01915.75
7.0.30.0140.02815.61
7.0.20.0140.01415.62
7.0.10.0120.01815.68
7.0.00.0070.02315.78
5.6.400.0060.00914.54
5.6.390.0090.00014.34
5.6.380.0000.01114.27
5.6.370.0070.00514.40
5.6.360.0030.00814.37
5.6.350.0070.00814.56
5.6.340.0050.00514.28
5.6.330.0070.00214.28
5.6.320.0070.00814.35
5.6.310.0060.00314.23
5.6.300.0050.00814.40
5.6.290.0040.01014.35
5.6.280.0050.02916.67
5.6.270.0070.00514.43
5.6.260.0060.00614.47
5.6.250.0010.00914.37
5.6.240.0030.01014.44
5.6.230.0060.00814.38
5.6.220.0060.00714.36
5.6.210.0080.02716.55
5.6.200.0050.02415.55
5.6.190.0040.03316.41
5.6.180.0060.03116.54
5.6.170.0130.01816.34
5.6.160.0060.03216.37
5.6.150.0050.03515.67
5.6.140.0050.02715.64
5.6.130.0080.03115.65
5.6.120.0070.03116.44
5.6.110.0060.03316.67
5.6.100.0060.03116.63
5.6.90.0060.02116.60
5.6.80.0060.02516.35
5.6.70.0040.00714.14
5.6.60.0040.00814.20
5.6.50.0060.00814.38
5.6.40.0100.00414.10
5.6.30.0050.00814.35
5.6.20.0070.00714.30
5.6.10.0020.00814.11
5.6.00.0040.00814.21
5.5.380.0030.01112.75
5.5.370.0060.00312.79
5.5.360.0030.00712.85
5.5.350.1270.02115.29
5.5.340.0060.01514.46
5.5.330.0040.03115.25
5.5.320.0070.03015.10
5.5.310.0110.02115.23
5.5.300.0110.02514.35
5.5.290.0030.02814.37
5.5.280.0050.03415.64
5.5.270.0070.03015.57
5.5.260.0060.03115.47
5.5.250.0070.02815.43
5.5.240.0080.02215.14
5.5.230.0000.00912.52
5.5.220.0060.00412.61
5.5.210.0050.00712.72
5.5.200.0030.00812.88
5.5.190.0020.01012.81
5.5.180.0050.00512.77
5.5.170.0070.00312.79
5.5.160.0060.00612.73
5.5.150.0000.01012.80
5.5.140.0040.01012.78
5.5.130.0050.00712.73
5.5.120.0000.01112.79
5.5.110.0000.01112.80
5.5.100.0060.00612.63
5.5.90.0090.00512.72
5.5.80.0060.00512.75
5.5.70.0080.00312.72
5.5.60.0050.00712.81
5.5.50.0000.01212.75
5.5.40.0050.00912.79
5.5.30.0050.00512.87
5.5.20.0030.00912.67
5.5.10.0020.00812.56
5.5.00.0060.00612.56
5.4.450.0030.03013.94
5.4.440.0030.03013.86
5.4.430.0040.02113.95
5.4.420.0070.02613.76
5.4.410.0070.02913.89
5.4.400.0030.02813.75
5.4.390.0060.02313.83
5.4.380.0040.02813.82
5.4.370.0040.02413.69
5.4.360.0020.02013.71
5.4.350.0030.02913.73
5.4.340.0050.02513.78
5.4.330.0020.00611.00
5.4.320.0020.01913.67
5.4.310.0020.02313.76
5.4.300.0030.02013.62
5.4.290.0040.03013.70
5.4.280.0020.03113.71
5.4.270.0030.02113.86
5.4.260.0050.02913.77
5.4.250.0050.03213.70
5.4.240.0040.02613.80
5.4.230.0050.02313.70
5.4.220.0050.01913.71
5.4.210.0030.02113.72
5.4.200.0050.02613.73
5.4.190.0020.01913.70
5.4.180.0030.03013.74
5.4.170.0020.03113.77
5.4.160.0020.02613.73
5.4.150.0020.01713.79
5.4.140.0020.02712.91
5.4.130.0050.02412.89
5.4.120.0050.02512.94
5.4.110.0030.01912.93
5.4.100.0020.02912.84
5.4.90.0040.02812.80
5.4.80.0050.02612.87
5.4.70.0040.02812.88
5.4.60.0040.02412.97
5.4.50.0050.02712.95
5.4.40.0020.02812.87
5.4.30.0040.02512.99
5.4.20.0020.02412.93
5.4.10.0030.02812.81
5.4.00.0030.03012.65
5.3.290.0050.02012.25
5.3.280.0010.01912.15
5.3.270.0020.02312.15
5.3.260.0030.02912.16
5.3.250.0040.02012.16
5.3.240.0040.02812.15
5.3.230.0040.01812.15
5.3.220.0010.01912.14
5.3.210.0010.02812.20
5.3.200.0030.02112.14
5.3.190.0010.02712.18
5.3.180.0040.02512.16
5.3.170.0020.02512.18
5.3.160.0030.02712.14
5.3.150.0030.02212.17
5.3.140.0050.02212.17
5.3.130.0040.02312.15
5.3.120.0020.02112.13
5.3.110.0050.02312.13
5.3.100.0040.02712.05
5.3.90.0010.03312.05
5.3.80.0040.02512.05
5.3.70.0040.02112.05
5.3.60.0030.02812.05
5.3.50.0010.02812.05
5.3.40.0060.02812.05
5.3.30.0030.02712.05
5.3.20.0050.01712.05
5.3.10.0020.03012.05
5.3.00.0040.02912.05
5.2.170.0000.02712.65
5.2.160.0050.01512.65
5.2.150.0040.03312.65
5.2.140.0020.03212.65
5.2.130.0020.01612.65
5.2.120.0050.02212.65
5.2.110.0060.02812.65
5.2.100.0030.03012.65
5.2.90.0050.02012.65
5.2.80.0040.02012.65
5.2.70.0030.03512.65
5.2.60.0040.03012.65
5.2.50.0010.02512.65
5.2.40.0000.02612.65
5.2.30.0030.02312.65
5.2.20.0070.02712.65
5.2.10.0010.02412.65
5.2.00.0030.02912.65
5.1.60.0020.02112.65
5.1.50.0030.02512.65
5.1.40.0030.02112.65
5.1.30.0020.03312.65
5.1.20.0040.01912.65
5.1.10.0000.02712.65
5.1.00.0040.02912.65
5.0.50.0060.01112.65
5.0.40.0000.02512.65
5.0.30.0000.03712.65
5.0.20.0000.02212.65
5.0.10.0020.02212.65
5.0.00.0040.03012.65
4.4.90.0020.01612.65
4.4.80.0020.01312.65
4.4.70.0000.01312.65
4.4.60.0010.02112.65
4.4.50.0050.01312.65
4.4.40.0000.03112.65
4.4.30.0030.01412.65
4.4.20.0030.01312.65
4.4.10.0030.01512.65
4.4.00.0030.02212.65
4.3.110.0000.02112.65
4.3.100.0040.01712.65
4.3.90.0030.01812.65
4.3.80.0010.02612.65
4.3.70.0020.01312.65
4.3.60.0020.01512.65
4.3.50.0000.02112.65
4.3.40.0020.02712.65
4.3.30.0020.02212.65
4.3.20.0000.02212.65
4.3.10.0020.01812.65
4.3.00.0020.01512.65

preferences:
62.56 ms | 401 KiB | 5 Q