3v4l.org

run code in 300+ PHP versions simultaneously
<?ph class Foo { public $bar = 'A'; public function doSomething() { $this->bar = 'B'; yield; } } $foo = new Foo(); echo $foo->bar . PHP_EOL; $foo->doSomething(); echo $foo->bar . PHP_EOL;

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.0090.00516.49
8.3.50.0110.00522.93
8.3.40.0030.01218.71
8.3.30.0070.00719.05
8.3.20.0030.00520.07
8.3.10.0000.00723.39
8.3.00.0080.00019.26
8.2.180.0070.00718.05
8.2.170.0070.00722.96
8.2.160.0100.00320.29
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.03
8.2.110.0070.00322.23
8.2.100.0110.00017.66
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00417.98
8.2.20.0040.00417.53
8.2.10.0050.00318.03
8.2.00.0000.00817.41
8.1.280.0080.00625.92
8.1.270.0080.00023.75
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0000.01223.73
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0040.00417.10
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0060.00318.48
8.1.160.0040.00421.94
8.1.150.0030.00518.63
8.1.140.0000.00717.17
8.1.130.0000.00617.68
8.1.120.0040.00417.37
8.1.110.0000.00817.28
8.1.100.0040.00417.22
8.1.90.0070.00017.14
8.1.80.0030.00317.30
8.1.70.0030.00317.26
8.1.60.0000.00817.44
8.1.50.0050.00317.38
8.1.40.0040.00417.40
8.1.30.0040.00417.38
8.1.20.0030.00617.49
8.1.10.0040.00417.45
8.1.00.0030.00617.32
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0030.00318.28
8.0.270.0030.00317.20
8.0.260.0000.00617.25
8.0.250.0040.00416.71
8.0.240.0080.00016.88
8.0.230.0030.00316.71
8.0.220.0000.00716.76
8.0.210.0000.00716.75
8.0.200.0060.00016.80
8.0.190.0090.00016.71
8.0.180.0000.00716.79
8.0.170.0050.00216.81
8.0.160.0090.00016.73
8.0.150.0040.00416.62
8.0.140.0000.00816.69
8.0.130.0000.00513.33
8.0.120.0050.00216.76
8.0.110.0000.00716.69
8.0.100.0040.00416.75
8.0.90.0080.00016.73
8.0.80.0140.00316.80
8.0.70.0040.00416.81
8.0.60.0090.00016.57
8.0.50.0000.00716.73
8.0.30.0110.00816.91
8.0.20.0120.00717.40
8.0.10.0040.00416.71
8.0.00.0130.00616.55
7.4.330.0070.00015.00
7.4.320.0000.00716.36
7.4.300.0030.00316.34
7.4.290.0030.00316.37
7.4.280.0000.00816.34
7.4.270.0000.00716.50
7.4.260.0030.00616.45
7.4.250.0040.00416.34
7.4.240.0030.00416.38
7.4.230.0030.00316.48
7.4.220.0100.00716.39
7.4.210.0070.01416.35
7.4.200.0000.00716.44
7.4.160.0180.00316.57
7.4.150.0070.01717.40
7.4.140.0110.00617.86
7.4.130.0140.00316.41
7.4.120.0120.00516.40
7.4.110.0060.01516.29
7.4.100.0030.01516.41
7.4.90.0070.00916.50
7.4.80.0100.00619.39
7.4.70.0090.01216.22
7.4.60.0090.00916.51
7.4.50.0000.00816.33
7.4.40.0160.00016.37
7.4.30.0110.00416.43
7.3.330.0000.00713.20
7.3.320.0000.00513.20
7.3.310.0060.00316.12
7.3.300.0000.00715.96
7.3.290.0070.00716.15
7.3.280.0020.01416.13
7.3.270.0030.01517.40
7.3.260.0060.01216.47
7.3.250.0150.00516.29
7.3.240.0090.00616.05
7.3.230.0140.00316.55
7.3.210.0040.01316.32
7.3.200.0060.01019.39
7.3.190.0040.01416.43
7.3.180.0030.01316.51
7.3.170.0030.01316.36
7.3.160.0070.00716.22
7.2.330.0060.01216.42
7.2.320.0070.01416.30
7.2.310.0160.00616.65
7.2.300.0160.00316.27
7.2.290.0060.01016.56
5.4.320.0230.06318.95
5.4.310.0230.07718.88
5.4.300.0200.04719.13
5.4.290.0270.04018.87
5.4.280.0270.03719.15
5.4.270.0270.07719.22
5.4.260.0230.07019.30
5.4.250.0230.07318.97
5.4.240.0170.03718.97
5.4.230.0170.03719.15
5.4.220.0170.04018.87
5.4.210.0100.04318.98
5.4.200.0130.05019.08
5.4.190.0170.03319.08
5.4.180.0070.04719.08
5.4.170.0100.06018.93
5.4.160.0170.03318.99
5.4.150.0300.02718.92
5.4.140.0100.04016.35
5.4.130.0170.03716.36
5.4.120.0070.04016.33
5.4.110.0200.03016.51
5.4.100.0130.03716.45
5.4.90.0100.03716.56
5.4.80.0130.03316.34
5.4.70.0170.03016.30
5.4.60.0100.04016.33
5.4.50.0200.03316.54
5.4.40.0130.03716.34
5.4.30.0200.03016.25
5.4.20.0130.03316.53
5.4.10.0100.04016.54
5.4.00.0130.04015.96

preferences:
46.75 ms | 401 KiB | 5 Q