3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $result = true; function getResult() { if ($this->result) { return true; } } } $foo = new Foo(); echo $foo->getResult();

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.0110.00416.63
8.3.50.0100.01018.05
8.3.40.0110.00418.57
8.3.30.0070.00718.63
8.3.20.0000.00721.73
8.3.10.0080.00021.85
8.3.00.0030.00519.56
8.2.180.0100.00716.63
8.2.170.0110.00422.96
8.2.160.0070.00719.26
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00420.50
8.2.120.0070.00026.35
8.2.110.0030.00722.25
8.2.100.0000.01217.78
8.2.90.0040.00418.97
8.2.80.0030.00618.05
8.2.70.0090.00017.50
8.2.60.0030.00617.93
8.2.50.0000.00918.10
8.2.40.0040.00420.59
8.2.30.0000.00719.11
8.2.20.0000.00718.01
8.2.10.0050.00217.99
8.2.00.0000.00817.94
8.1.280.0080.01225.92
8.1.270.0080.00020.65
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0060.00622.13
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0070.00417.23
8.1.190.0090.00017.23
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0000.00818.86
8.1.150.0040.00418.81
8.1.140.0030.00519.50
8.1.130.0030.00318.78
8.1.120.0040.00417.42
8.1.110.0030.00617.38
8.1.100.0040.00417.39
8.1.90.0030.00717.41
8.1.80.0080.00017.37
8.1.70.0000.00917.28
8.1.60.0070.00017.46
8.1.50.0000.00817.53
8.1.40.0040.00417.49
8.1.30.0060.00317.46
8.1.20.0000.00717.67
8.1.10.0050.00217.48
8.1.00.0040.00417.43
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0030.00318.40
8.0.270.0030.00517.15
8.0.260.0000.00617.23
8.0.250.0030.00316.85
8.0.240.0000.00716.86
8.0.230.0030.00316.77
8.0.220.0080.00016.71
8.0.210.0000.00716.69
8.0.200.0000.00616.77
8.0.190.0040.00416.83
8.0.180.0130.00016.85
8.0.170.0040.00416.87
8.0.160.0000.00716.81
8.0.150.0070.00016.81
8.0.140.0040.00416.70
8.0.130.0000.00513.22
8.0.120.0050.00316.73
8.0.110.0000.00716.60
8.0.100.0050.00316.82
8.0.90.0040.00416.72
8.0.80.0140.00716.76
8.0.70.0000.00716.82
8.0.60.0000.00716.77
8.0.50.0020.00516.72
8.0.30.0100.00817.13
8.0.20.0120.00717.40
8.0.10.0000.00716.81
8.0.00.0140.00316.91
7.4.330.0020.00215.55
7.4.320.0030.00316.37
7.4.300.0030.00316.43
7.4.290.0070.00016.48
7.4.280.0060.00316.47
7.4.270.0050.00216.46
7.4.260.0030.00616.57
7.4.250.0080.00016.60
7.4.240.0040.00416.40
7.4.230.0030.00316.48
7.4.220.0100.01016.36
7.4.210.0050.00816.55
7.4.200.0000.00716.58
7.4.160.0070.01216.42
7.4.150.0080.01117.40
7.4.140.0100.01117.86
7.4.130.0110.00616.46
7.4.120.0120.00816.45
7.4.110.0060.00916.38
7.4.100.0070.01016.44
7.4.90.0110.00716.59
7.4.80.0160.01019.39
7.4.70.0110.01116.52
7.4.60.0060.01016.43
7.4.50.0040.01116.50
7.4.40.0100.00716.44
7.4.30.0130.00316.37
7.4.00.0000.01415.20
7.3.330.0060.00013.08
7.3.320.0030.00313.10
7.3.310.0030.00316.08
7.3.300.0030.00316.08
7.3.290.0080.00816.23
7.3.280.0090.00916.19
7.3.270.0090.00917.40
7.3.260.0100.01116.27
7.3.250.0150.00516.30
7.3.240.0090.00816.36
7.3.230.0110.00716.36
7.3.210.0070.01016.28
7.3.200.0080.00916.41
7.3.190.0080.01216.45
7.3.180.0070.01016.45
7.3.170.0060.01016.40
7.3.160.0100.00816.44
7.2.330.0160.00716.77
7.2.320.0120.00616.70
7.2.310.0170.00316.80
7.2.300.0070.01116.64
7.2.290.0060.01116.68
7.2.60.0120.00016.83
7.2.00.0100.00719.41
7.1.200.0070.00715.65
7.1.100.0120.00417.91
7.1.70.0090.00617.00
7.1.60.0070.00416.99
7.1.50.0600.01732.56
7.1.40.0570.01032.47
7.1.30.0900.01732.33
7.1.20.0470.01032.55
7.1.10.0400.01314.40
7.1.00.0630.01014.60
7.0.200.0070.00716.68
7.0.190.0570.01314.74
7.0.180.0430.01014.15
7.0.170.0670.00714.35
7.0.160.0530.00714.24
7.0.150.0300.01714.00
7.0.140.0430.00714.40
7.0.130.0500.01014.50
7.0.120.0400.01014.52
7.0.110.0470.01014.48
7.0.100.0400.00714.45
7.0.90.0530.02014.41
7.0.80.0430.01014.31
7.0.70.0330.01314.23
7.0.60.0530.00714.20
7.0.50.0600.01314.09
7.0.40.0400.01014.48
7.0.30.0400.01014.37
7.0.20.0430.00714.38
7.0.10.0400.01014.38
7.0.00.0430.00714.31

preferences:
67.73 ms | 401 KiB | 5 Q