3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Invokable { private $callCount = 0; public function __invoke() { $this->callCount++; return $this->callCount; } } class Example { private $invokable; public function __construct() { $this->invokable = new Invokable(); } public function getInvokable0() { $invokable = $this->invokable; return $invokable(); } } $eg = new Example(); printf("%d\n",$eg->getInvokable0());

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.0100.01016.75
8.3.50.0150.00018.30
8.3.40.0120.00318.75
8.3.30.0040.01118.50
8.3.20.0040.00420.21
8.3.10.0000.00822.09
8.3.00.0050.00323.39
8.2.180.0130.00918.54
8.2.170.0000.01422.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00820.47
8.2.120.0080.00026.35
8.2.110.0070.00422.06
8.2.100.0070.00417.72
8.2.90.0060.00317.91
8.2.80.0030.00618.98
8.2.70.0040.00418.03
8.2.60.0030.00518.16
8.2.50.0070.00418.10
8.2.40.0080.00020.63
8.2.30.0000.00719.12
8.2.20.0040.00418.13
8.2.10.0040.00418.06
8.2.00.0040.00418.16
8.1.280.0030.01325.92
8.1.270.0070.00022.24
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.93
8.1.230.0110.00020.83
8.1.220.0080.00017.77
8.1.210.0000.00918.77
8.1.200.0030.00617.38
8.1.190.0060.00317.36
8.1.180.0030.00518.10
8.1.170.0060.00318.59
8.1.160.0030.00518.85
8.1.150.0050.00220.18
8.1.140.0040.00419.55
8.1.130.0030.00318.88
8.1.120.0050.00317.39
8.1.110.0000.00717.36
8.1.100.0050.00317.40
8.1.90.0070.00317.41
8.1.80.0000.00717.30
8.1.70.0080.00017.31
8.1.60.0000.00817.48
8.1.50.0060.00317.52
8.1.40.0050.00517.55
8.1.30.0040.00417.62
8.1.20.0040.00417.58
8.1.10.0000.00817.50
8.1.00.0040.00417.31
8.0.300.0040.00420.11
8.0.290.0050.00316.63
8.0.280.0000.00818.38
8.0.270.0040.00417.19
8.0.260.0000.00917.11
8.0.250.0030.00316.91
8.0.240.0040.00416.77
8.0.230.0050.00516.92
8.0.220.0000.00616.73
8.0.210.0000.00716.77
8.0.200.0000.00716.90
8.0.190.0040.00416.87
8.0.180.0070.00016.85
8.0.170.0040.00416.86
8.0.160.0000.00716.89
8.0.150.0000.00816.75
8.0.140.0000.00916.75
8.0.130.0050.00013.29
8.0.120.0050.00316.76
8.0.110.0030.00316.88
8.0.100.0000.00816.71
8.0.90.0000.00816.70
8.0.80.0070.01316.82
8.0.70.0000.00716.78
8.0.60.0040.00416.86
8.0.50.0000.00716.80
8.0.30.0090.01317.15
8.0.20.0090.01017.40
8.0.10.0070.00016.77
8.0.00.0060.01216.79
7.4.330.0030.00315.55
7.4.320.0000.00616.36
7.4.300.0000.00616.50
7.4.290.0030.00316.60
7.4.280.0040.00416.46
7.4.270.0030.00316.65
7.4.260.0000.00716.47
7.4.250.0000.00716.51
7.4.240.0030.00616.59
7.4.230.0060.00016.63
7.4.220.0100.01016.44
7.4.210.0060.00916.56
7.4.200.0000.00716.38
7.4.160.0100.00616.50
7.4.150.0100.01017.40
7.4.140.0140.00717.86
7.4.130.0100.00816.52
7.4.120.0100.00816.55
7.4.110.0140.00316.40
7.4.100.0120.00316.42
7.4.90.0140.00316.46
7.4.80.0110.01119.39
7.4.70.0100.00716.45
7.4.60.0000.01616.16
7.4.50.0030.01316.46
7.4.40.0080.01116.72
7.4.30.0070.01016.42
7.4.00.0040.00414.76
7.3.330.0050.00013.32
7.3.320.0000.00513.16
7.3.310.0020.00516.11
7.3.300.0000.00716.29
7.3.290.0050.01116.25
7.3.280.0060.01216.27
7.3.270.0150.00417.40
7.3.260.0080.01016.52
7.3.250.0110.00516.26
7.3.240.0070.00916.26
7.3.230.0100.00816.41
7.3.210.0100.01316.25
7.3.200.0120.00616.36
7.3.190.0000.01616.42
7.3.180.0160.00316.52
7.3.170.0090.01216.36
7.3.160.0100.01016.36
7.3.10.0060.00716.50
7.3.00.0060.00616.05
7.2.330.0100.00916.45
7.2.320.0060.01116.41
7.2.310.0110.00716.56
7.2.300.0060.02216.68
7.2.290.0070.01016.72
7.2.130.0040.01116.64
7.2.120.0060.00916.63
7.2.110.0030.00816.64
7.2.100.0070.00716.73
7.2.90.0030.01217.05
7.2.80.0090.00616.27
7.2.70.0000.01016.86
7.2.60.0030.00916.74
7.2.50.0070.00816.91
7.2.40.0060.00616.64
7.2.30.0060.00616.89
7.2.20.0070.00316.66
7.2.10.0040.00717.00
7.2.00.0000.01016.82
7.1.250.0040.01115.53
7.1.200.0080.00815.60
7.1.70.0070.00417.07
7.1.60.0110.00317.02
7.1.30.0430.06736.49
7.1.20.0300.07336.59
7.1.10.0100.08320.33
7.1.00.0170.05720.64
7.0.200.0090.00616.73
7.0.170.0200.05020.04
7.0.160.0130.07320.19
7.0.150.0270.06320.02
7.0.140.0070.06320.10
7.0.130.0170.06020.18
7.0.120.0100.06320.05
7.0.110.0130.09019.93
7.0.100.0100.07319.94
7.0.90.0070.07020.13
7.0.80.0130.06020.23
7.0.70.0100.06720.07
7.0.60.0030.08719.98
7.0.50.8670.07720.12
7.0.40.0500.05720.08
7.0.30.0130.06720.13
7.0.20.0400.06720.12
7.0.10.0200.05720.04
7.0.00.0100.06020.13

preferences:
52.78 ms | 400 KiB | 5 Q