3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { public $call; public function __construct() { $this->call = function () { echo "x"; }; } public function call() { echo "y"; } } $object = new X; $call = $object->call; $call();

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.0040.01116.63
8.3.50.0080.01422.01
8.3.40.0120.00918.92
8.3.30.0120.00618.68
8.3.20.0050.00220.29
8.3.10.0050.00223.61
8.3.00.0080.00019.85
8.2.180.0090.00616.38
8.2.170.0100.00722.96
8.2.160.0060.00920.27
8.2.150.0000.00825.66
8.2.140.0070.00024.66
8.2.130.0080.00019.39
8.2.120.0080.00026.35
8.2.110.0060.00322.05
8.2.100.0040.00817.91
8.2.90.0030.00518.04
8.2.80.0070.00018.03
8.2.70.0000.00818.04
8.2.60.0050.00318.04
8.2.50.0040.00418.10
8.2.40.0080.00020.56
8.2.30.0000.00720.68
8.2.20.0000.00717.54
8.2.10.0060.00317.93
8.2.00.0040.00418.06
8.1.280.0110.00325.92
8.1.270.0110.00620.31
8.1.260.0060.00328.09
8.1.250.0030.00628.09
8.1.240.0040.00423.75
8.1.230.0120.00022.82
8.1.220.0040.00417.79
8.1.210.0050.00518.77
8.1.200.0080.00017.35
8.1.190.0030.00717.13
8.1.180.0050.00318.10
8.1.170.0060.00318.71
8.1.160.0070.00022.20
8.1.150.0070.00018.89
8.1.140.0000.00819.50
8.1.130.0040.00417.60
8.1.120.0040.00417.38
8.1.110.0070.00017.49
8.1.100.0030.00417.42
8.1.90.0100.00017.52
8.1.80.0000.00817.38
8.1.70.0000.00817.41
8.1.60.0000.00817.56
8.1.50.0000.00817.40
8.1.40.0000.00817.43
8.1.30.0040.00417.63
8.1.20.0000.00717.52
8.1.10.0080.00017.53
8.1.00.0080.00017.56
8.0.300.0070.00019.90
8.0.290.0080.00016.63
8.0.280.0000.00718.43
8.0.270.0050.00317.26
8.0.260.0000.00617.15
8.0.250.0000.00716.76
8.0.240.0030.00316.87
8.0.230.0030.00316.87
8.0.220.0030.00416.72
8.0.210.0000.00716.70
8.0.200.0030.00316.92
8.0.190.0040.00416.93
8.0.180.0000.00716.96
8.0.170.0040.00416.79
8.0.160.0000.00816.85
8.0.150.0000.00816.73
8.0.140.0040.00716.84
8.0.130.0000.00513.33
8.0.120.0080.00016.72
8.0.110.0000.00716.76
8.0.100.0000.00816.95
8.0.90.0000.00716.83
8.0.80.0150.00016.83
8.0.70.0000.00816.76
8.0.60.0040.00416.88
8.0.50.0070.00016.78
8.0.30.0110.00717.07
8.0.20.0130.00717.40
8.0.10.0000.00816.89
8.0.00.0060.01016.90
7.4.330.0000.00616.84
7.4.320.0030.00316.59
7.4.300.0000.00616.57
7.4.290.0050.00316.62
7.4.280.0000.00716.34
7.4.270.0040.00416.50
7.4.260.0030.00316.61
7.4.250.0030.00516.36
7.4.240.0030.00516.50
7.4.230.0030.00316.34
7.4.220.0040.01816.35
7.4.210.0040.01116.47
7.4.200.0020.00516.69
7.4.160.0060.00916.29
7.4.150.0130.00417.40
7.4.140.0100.00917.86
7.4.130.0100.00716.60
7.4.120.0080.00916.43
7.4.110.0060.01016.39
7.4.100.0100.01616.55
7.4.90.0100.00716.57
7.4.80.0060.01619.39
7.4.70.0040.01416.34
7.4.60.0070.01016.52
7.4.50.0100.00616.49
7.4.40.0070.01016.60
7.4.30.0130.00316.59
7.4.00.0070.00714.88
7.3.330.0000.00513.29
7.3.320.0030.00313.05
7.3.310.0070.00016.20
7.3.300.0030.00316.28
7.3.290.0050.01016.29
7.3.280.0080.00916.31
7.3.270.0110.00517.40
7.3.260.0080.00916.32
7.3.250.0100.01116.36
7.3.240.0100.00916.33
7.3.230.0100.00716.52
7.3.210.0090.00616.55
7.3.200.0070.01016.36
7.3.190.0120.00816.30
7.3.180.0090.00616.55
7.3.170.0080.00816.59
7.3.160.0070.01016.40
7.3.120.0090.00914.94
7.3.110.0100.00714.75
7.3.100.0090.00914.94
7.3.90.0060.00914.57
7.3.80.0090.00614.53
7.3.70.0030.01014.73
7.3.60.0090.00314.83
7.3.50.0070.00715.08
7.3.40.0030.00714.55
7.3.30.0030.00914.84
7.3.20.0040.00416.45
7.3.10.0060.00916.43
7.3.00.0080.00416.74
7.2.330.0100.00716.34
7.2.320.0190.00016.46
7.2.310.0070.01416.86
7.2.300.0100.00616.76
7.2.290.0120.00516.76
7.2.250.0060.01314.93
7.2.240.0060.00915.33
7.2.230.0070.00715.10
7.2.220.0130.00315.01
7.2.210.0090.00914.90
7.2.200.0060.00614.86
7.2.190.0110.00314.93
7.2.180.0060.01215.11
7.2.170.0030.01315.03
7.2.60.0060.01016.58
7.2.00.0030.01219.42
7.1.330.0080.00815.60
7.1.320.0000.01115.87
7.1.310.0070.00715.87
7.1.300.0000.01515.74
7.1.290.0060.00615.75
7.1.280.0000.01515.84
7.1.270.0040.00415.70
7.1.260.0030.01015.61
7.1.200.0110.00315.76
7.1.100.0070.00317.92
7.1.70.0030.00517.21
7.1.60.0130.01019.52
7.1.50.0100.01016.98
7.1.00.0030.07722.32
7.0.200.0040.00716.73
7.0.60.0030.08019.85
7.0.50.0000.05017.88
7.0.40.0130.08020.23
7.0.30.0230.08320.26
7.0.20.0300.04720.24
7.0.10.0070.08720.26
7.0.00.0030.04720.12
5.6.280.0000.03321.05
5.6.210.0100.08320.57
5.6.200.0070.07718.15
5.6.190.0070.09020.46
5.6.180.0300.07020.67
5.6.170.0300.06720.47
5.6.160.0070.08320.44
5.6.150.0030.04018.25
5.6.140.0100.06018.27
5.6.130.0100.07318.18
5.6.120.0100.08321.03
5.6.110.0030.08721.15
5.6.100.0200.05721.14
5.6.90.0030.05320.98
5.6.80.0130.07320.44
5.5.350.0100.03020.43
5.5.340.0030.04018.07
5.5.330.0000.06020.43
5.5.320.0600.07020.30
5.5.310.0270.06320.34
5.5.300.0070.07717.95
5.5.290.0130.07017.95
5.5.280.0030.08320.81
5.5.270.0000.04720.80
5.5.260.0170.03020.73
5.5.250.0000.05720.70
5.5.240.0270.07320.18

preferences:
46.86 ms | 401 KiB | 5 Q