3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { public function toCall() { echo 'called'; } public function fromCall(callable $call) { echo 'from'; } public function __construct() { fromCall($this, 'toCall'); } } $myClass = new myClass();

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.55
8.3.50.0100.01021.16
8.3.40.0110.00418.98
8.3.30.0170.00019.10
8.3.20.0040.00420.20
8.3.10.0030.00520.66
8.3.00.0040.00419.38
8.2.180.0060.01618.29
8.2.170.0120.00622.96
8.2.160.0100.01020.47
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00722.24
8.2.110.0080.00022.09
8.2.100.0000.01117.84
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00317.68
8.2.50.0040.00418.07
8.2.40.0060.00618.07
8.2.30.0040.00419.16
8.2.20.0000.00717.55
8.2.10.0000.00817.90
8.2.00.0000.00717.67
8.1.280.0040.01125.92
8.1.270.0030.00623.91
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.63
8.1.230.0090.00319.13
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0080.00417.23
8.1.190.0040.00417.13
8.1.180.0030.00618.10
8.1.170.0050.00318.48
8.1.160.0050.00221.86
8.1.150.0040.00418.69
8.1.140.0020.00517.31
8.1.130.0000.00817.64
8.1.120.0040.00417.23
8.1.110.0000.00817.21
8.1.100.0070.00017.32
8.1.90.0050.00217.27
8.1.80.0030.00317.32
8.1.70.0040.00417.18
8.1.60.0080.00017.55
8.1.50.0030.00517.45
8.1.40.0060.00317.48
8.1.30.0080.00017.60
8.1.20.0030.00617.48
8.1.10.0060.00317.48
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00718.38
8.0.270.0070.00017.19
8.0.260.0030.00317.18
8.0.250.0030.00316.98
8.0.240.0040.00416.93
8.0.230.0050.00316.83
8.0.220.0000.00716.95
8.0.210.0000.00716.84
8.0.200.0040.00416.94
8.0.190.0070.00016.86
8.0.180.0000.00716.88
8.0.170.0040.00416.86
8.0.160.0030.00316.93
8.0.150.0030.00316.77
8.0.140.0000.00716.91
8.0.130.0050.00013.38
8.0.120.0040.00416.83
8.0.110.0070.00016.90
8.0.100.0030.00516.74
8.0.90.0000.00716.81
8.0.80.0000.01416.95
8.0.70.0040.00416.68
8.0.60.0000.00716.91
8.0.50.0000.00816.79
8.0.30.0120.01117.22
8.0.20.0080.01717.40
8.0.10.0040.00416.73
8.0.00.0130.00316.69
7.4.330.0020.00215.00
7.4.320.0040.00416.51
7.4.300.0000.00616.44
7.4.290.0000.00816.42
7.4.280.0040.00416.57
7.4.270.0040.00416.43
7.4.260.0040.00416.49
7.4.250.0000.00716.41
7.4.240.0000.00816.39
7.4.230.0000.00716.39
7.4.220.0150.01216.42
7.4.210.0100.00916.61
7.4.200.0000.00716.64
7.4.160.0150.00616.35
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0110.00616.46
7.4.120.0130.00416.41
7.4.110.0130.00316.61
7.4.100.0070.01016.55
7.4.90.0080.00816.38
7.4.80.0100.00719.37
7.4.70.0120.00316.50
7.4.60.0070.01416.55
7.4.50.0000.00816.45
7.4.40.0030.01416.57
7.4.30.0090.00916.34
7.4.00.0070.01014.83
7.3.330.0040.00413.37
7.3.320.0050.00013.22
7.3.310.0070.00016.40
7.3.300.0000.00716.37
7.3.290.0000.01416.41
7.3.280.0060.01016.35
7.3.270.0110.00817.40
7.3.260.0130.00316.41
7.3.250.0140.00516.46
7.3.240.0100.00716.51
7.3.230.0030.01316.39
7.3.210.0070.01016.60
7.3.200.0130.00319.39
7.3.190.0090.00916.33
7.3.180.0090.00616.34
7.3.170.0110.01016.52
7.3.160.0110.00716.41
7.2.330.0090.01316.63
7.2.320.0080.00816.32
7.2.310.0070.01016.35
7.2.300.0140.00316.49
7.2.290.0080.00816.29
7.2.60.0090.00616.52
7.2.00.0040.00819.15
7.1.200.0100.00315.68
7.1.100.0000.01117.86
7.1.70.0000.00716.73
7.1.60.0130.00619.32
7.1.50.0030.02016.77
7.1.00.0030.07722.33
7.0.200.0000.00816.42
7.0.140.0000.07722.07
7.0.60.0030.04019.95
7.0.50.0100.05717.95
7.0.40.0070.04019.96
7.0.30.0030.05020.19
7.0.20.0200.08320.09
7.0.10.0070.05720.22
7.0.00.0070.07720.35
5.6.280.0030.07320.85
5.6.210.0030.09020.71
5.6.200.0000.04718.29
5.6.190.0000.08020.54
5.6.180.0170.04720.41
5.6.170.0270.07320.55
5.6.160.0000.06320.46
5.6.150.0070.05318.14
5.6.140.0070.05318.16
5.6.130.0100.08318.13
5.6.120.0000.06021.04
5.6.110.0130.07321.12
5.6.100.0000.09020.97
5.6.90.0070.06721.03
5.6.80.0200.06720.54
5.5.350.4000.04020.44
5.5.340.0070.07017.96
5.5.330.0030.05320.15
5.5.320.0670.06020.25
5.5.310.0200.04320.35
5.5.300.0030.08017.99
5.5.290.0130.07317.99
5.5.280.0070.05720.86
5.5.270.0130.08020.84
5.5.260.0070.07320.73
5.5.250.0030.09020.46
5.5.240.0230.07020.05
5.4.450.0200.04019.28
5.4.440.0270.08019.53
5.4.430.0200.04019.56
5.4.420.0200.04019.63
5.4.410.0200.05319.43
5.4.400.0170.05719.14
5.4.390.0230.06319.09
5.4.380.0130.04719.08
5.4.370.0200.05318.99
5.4.360.0230.04019.06
5.4.350.0170.04019.31
5.4.340.0130.05319.24
5.4.320.0200.03719.12
5.4.310.0170.03719.12
5.4.300.0130.04018.87
5.4.290.0270.04019.21
5.4.280.0330.03319.09
5.4.270.0200.08019.05
5.4.260.0200.04319.22
5.4.250.0170.05018.99
5.4.240.0130.04018.86
5.4.230.0230.06018.86
5.4.220.0170.04318.84
5.4.210.0100.06019.18
5.4.200.0230.04019.12
5.4.190.0100.04318.79
5.4.180.0230.05719.09
5.4.170.0100.05719.20
5.4.160.0270.02719.13
5.4.150.0230.04019.04
5.4.140.0170.04316.38
5.4.130.0130.03716.29
5.4.120.0200.03316.51
5.4.110.0230.04016.55
5.4.100.0170.04316.61
5.4.90.0170.03316.40
5.4.80.0170.03316.44
5.4.70.0170.07316.57
5.4.60.0130.04016.59
5.4.50.0230.03716.51
5.4.40.0130.04316.55
5.4.30.0200.06316.32
5.4.20.0170.04316.42
5.4.10.0130.03716.52
5.4.00.0100.05315.78
5.3.290.0130.04015.76
5.3.280.0070.04315.76
5.3.270.0130.04015.76
5.3.260.0170.03315.76
5.3.250.0130.04015.76
5.3.240.0170.03315.76
5.3.230.0200.04015.76
5.3.220.0170.07315.76
5.3.210.0370.04015.76
5.3.200.0130.04015.76
5.3.190.0170.04015.76
5.3.180.0130.04315.76
5.3.170.0100.06715.76
5.3.160.0200.03315.76
5.3.150.0200.06015.76
5.3.140.0130.04315.76
5.3.130.0170.06715.76
5.3.120.0230.06315.76
5.3.110.0230.04015.76
5.3.100.0200.06315.76
5.3.90.0130.04015.76
5.3.80.0200.04315.76
5.3.70.0230.05015.76
5.3.60.0230.03715.76
5.3.50.0130.04015.76
5.3.40.0200.05015.76
5.3.30.0230.05715.76
5.3.20.0270.03015.76
5.3.10.0200.03715.76
5.3.00.0270.03015.76
5.2.170.0130.03315.76
5.2.160.0130.04715.76
5.2.150.0170.03315.76
5.2.140.0100.04315.76
5.2.130.0200.02315.76
5.2.120.0130.05015.76
5.2.110.0300.05015.76
5.2.100.0200.03715.76
5.2.90.0170.03015.76
5.2.80.0170.02715.76
5.2.70.0230.03315.76
5.2.60.0270.03015.76
5.2.50.0230.06315.76
5.2.40.0170.05015.76
5.2.30.0170.05715.76
5.2.20.0230.05015.76
5.2.10.0100.05015.76
5.2.00.0200.04315.76
5.1.60.0100.03315.76
5.1.50.0130.02715.76
5.1.40.0170.02015.76
5.1.30.0200.02015.76
5.1.20.0200.04015.76
5.1.10.0130.04715.76
5.1.00.0200.05015.76
5.0.50.0100.03315.76
5.0.40.0030.02315.76
5.0.30.0100.04715.76
5.0.20.0070.03015.76
5.0.10.0130.04015.76
5.0.00.0070.04015.76
4.4.90.0100.03315.76
4.4.80.0100.02015.76
4.4.70.0170.03015.76
4.4.60.0100.01715.76
4.4.50.0030.02315.76
4.4.40.0070.02715.76
4.4.30.0030.02315.76
4.4.20.0130.02015.76
4.4.10.0070.03315.76
4.4.00.0030.02715.76
4.3.110.0100.02715.76
4.3.100.0130.03015.76
4.3.90.0100.01715.76
4.3.80.0100.05315.76
4.3.70.0070.02715.76
4.3.60.0100.03015.76
4.3.50.0070.01715.76
4.3.40.0100.05015.76
4.3.30.0130.02015.76
4.3.20.0030.01715.76
4.3.10.0070.01315.76
4.3.00.0000.03315.76

preferences:
51.61 ms | 401 KiB | 5 Q