3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { /** * @var float */ private $factor; public function __construct(float $factor) { $this->factor = $factor; } public function __invoke() { return $this->factor; } } $foo = new Foo(1.23); $boo = 2; $result = $foo() * $boo; //wanted output 2.46 echo $result;

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.70.0100.01016.58
8.3.60.0040.01118.31
8.3.50.0100.00717.46
8.3.40.0120.00318.82
8.3.30.0100.01018.84
8.3.20.0040.00420.85
8.3.10.0050.00320.76
8.3.00.0040.00421.90
8.2.190.0110.00418.18
8.2.180.0140.00725.92
8.2.170.0090.00922.96
8.2.160.0110.00420.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00320.74
8.2.110.0070.00421.06
8.2.100.0080.00417.47
8.2.90.0080.00018.03
8.2.80.0050.00318.08
8.2.70.0060.00317.50
8.2.60.0000.00917.63
8.2.50.0040.00417.63
8.2.40.0040.00419.38
8.2.30.0000.00719.26
8.2.20.0070.00018.17
8.2.10.0000.00718.94
8.2.00.0070.00019.54
8.1.280.0090.00625.92
8.1.270.0090.00022.01
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0050.00522.55
8.1.230.0000.01121.04
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0060.00318.49
8.1.160.0040.00418.88
8.1.150.0000.00818.88
8.1.140.0000.00718.93
8.1.130.0040.00419.99
8.1.120.0000.01017.30
8.1.110.0070.00017.29
8.1.100.0000.00817.43
8.1.90.0030.00617.32
8.1.80.0040.00417.33
8.1.70.0000.00717.41
8.1.60.0040.00417.48
8.1.50.0080.00017.56
8.1.40.0050.00317.51
8.1.30.0000.00817.68
8.1.20.0040.00417.59
8.1.10.0030.00617.55
8.1.00.0000.00717.48
8.0.300.0050.00219.98
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0030.00617.21
8.0.260.0040.00420.22
8.0.250.0070.00016.84
8.0.240.0050.00216.90
8.0.230.0080.00016.88
8.0.220.0000.00716.75
8.0.210.0070.00016.82
8.0.200.0000.00616.92
8.0.190.0050.00316.81
8.0.180.0000.00716.86
8.0.170.0000.00916.75
8.0.160.0000.00716.80
8.0.150.0000.00716.79
8.0.140.0030.00316.70
8.0.130.0060.00013.22
8.0.120.0080.00016.70
8.0.110.0030.00516.85
8.0.100.0000.00816.64
8.0.90.0050.00316.91
8.0.80.0040.01216.79
8.0.70.0000.00716.95
8.0.60.0020.00516.89
8.0.50.0040.00416.70
8.0.30.0130.00616.99
8.0.20.0110.01116.85
8.0.10.0000.00716.78
8.0.00.0110.00816.65
7.4.330.0000.00615.55
7.4.320.0030.00316.60
7.4.300.0000.00616.56
7.4.290.0070.00016.58
7.4.280.0040.00416.58
7.4.270.0040.00416.62
7.4.260.0000.00716.39
7.4.250.0000.00816.49
7.4.240.0030.00316.58
7.4.230.0000.00716.66
7.4.220.0000.00716.59
7.4.210.0100.00816.58
7.4.200.0030.00516.40
7.4.160.0090.00916.45
7.4.130.0040.01216.65
7.4.120.0130.00316.56
7.4.110.0070.01016.55
7.4.100.0070.01616.33
7.4.90.0090.00916.57
7.4.80.0070.01017.91
7.4.70.0120.00816.52
7.4.60.0100.00716.46
7.4.50.0090.00816.40
7.4.40.0100.00916.53
7.4.30.0130.01016.50
7.4.20.0150.00616.55
7.4.10.0090.00916.59
7.4.00.0120.00615.32
7.3.330.0000.00513.23
7.3.320.0000.00513.18
7.3.310.0040.00416.14
7.3.300.0060.00016.23
7.3.290.0070.00716.22
7.3.280.0090.00816.21
7.3.260.0100.00816.45
7.3.240.0100.00816.45
7.3.230.0100.00816.29
7.3.220.0030.01316.49
7.3.210.0070.01216.35
7.3.200.0130.00916.23
7.3.190.0110.00516.36
7.3.180.0090.00916.45
7.3.170.0070.01116.44
7.3.160.0110.00816.31
7.3.150.0120.00916.20
7.3.140.0130.00316.27
7.3.130.0090.01516.46
7.3.120.0110.00715.53
7.3.110.0150.00315.42
7.3.100.0100.01015.65
7.3.90.0050.01015.52
7.3.80.0030.01215.64
7.3.70.0020.01115.38
7.3.60.0080.01015.56
7.3.50.0050.00915.16
7.3.40.0100.01015.15
7.3.30.0100.00615.26
7.3.20.0100.00915.89
7.3.10.0090.00615.75
7.3.00.0110.01015.76
7.2.340.0090.00916.73
7.2.330.0100.00916.72
7.2.320.0090.00916.67
7.2.310.0080.00916.82
7.2.300.0080.01016.63
7.2.290.0120.00716.68
7.2.280.0140.00716.58
7.2.270.0060.01116.34
7.2.260.0140.01016.62
7.2.250.0080.01115.76
7.2.240.0080.00815.71
7.2.230.0080.01015.95
7.2.220.0030.01315.82
7.2.210.0060.01315.91
7.2.200.0070.00815.81
7.2.190.0100.00315.79
7.2.180.0100.00515.38
7.2.170.0130.00515.49
7.2.160.0020.01315.81
7.2.150.0140.00515.71
7.2.140.0090.00715.78
7.2.130.0120.00716.00
7.2.120.0200.00415.72
7.2.110.0090.01315.79
7.2.100.0150.00815.94
7.2.90.0080.01015.99
7.2.80.0050.01115.81
7.2.70.0080.01415.99
7.2.60.0100.00615.99
7.2.50.0090.00715.66
7.2.40.0070.01015.97
7.2.30.0160.00815.76
7.2.20.0090.00915.69
7.2.10.0090.01116.01
7.2.00.0100.00815.87
7.1.330.0160.00915.53
7.1.320.0180.00815.71
7.1.310.0120.01015.46
7.1.300.0140.00815.63
7.1.290.0140.01015.53
7.1.280.0090.01114.96
7.1.270.0150.01014.97
7.1.260.0470.00714.89
7.1.250.0170.00914.57
7.1.240.0240.01115.39
7.1.230.0180.01415.61
7.1.220.0230.01615.28
7.1.210.0230.00815.41
7.1.200.0250.00615.63
7.1.190.0290.00315.56
7.1.180.0290.01015.61
7.1.170.0180.00715.50
7.1.160.0190.00615.38
7.1.150.0180.00715.60
7.1.140.0180.00715.55
7.1.130.0180.00715.41
7.1.120.0170.01115.48
7.1.110.0220.00715.39
7.1.100.0130.01015.36
7.1.90.0080.01215.55
7.1.80.0130.00315.46
7.1.70.0100.00715.67
7.1.60.0070.01315.44
7.1.50.0130.00415.43
7.1.40.0140.00315.49
7.1.30.0120.00615.48
7.1.20.0340.00715.31
7.1.10.0070.01015.54
7.1.00.0070.01115.34

preferences:
19.87 ms | 401 KiB | 5 Q