3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'A'; public function doSomething() { $this->bar = 'B'; yield null; } } $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.00616.50
8.3.50.0140.00722.90
8.3.40.0120.00318.69
8.3.30.0140.00019.04
8.3.20.0000.00720.21
8.3.10.0000.00823.56
8.3.00.0080.00017.50
8.2.180.0180.00416.50
8.2.170.0180.00322.96
8.2.160.0100.01020.43
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0100.00326.16
8.2.120.0050.00320.88
8.2.110.0030.00622.01
8.2.100.0090.00319.51
8.2.90.0030.00519.22
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0040.00418.21
8.2.30.0060.00618.10
8.2.20.0060.00317.70
8.2.10.0040.00417.91
8.2.00.0000.00817.61
8.1.280.0090.00625.92
8.1.270.0060.00323.96
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0100.01023.98
8.1.230.0000.01119.01
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00918.70
8.1.160.0000.00822.05
8.1.150.0030.00518.80
8.1.140.0080.00017.44
8.1.130.0070.00017.86
8.1.120.0000.00717.45
8.1.110.0040.00417.48
8.1.100.0040.00417.37
8.1.90.0000.00817.43
8.1.80.0020.00517.45
8.1.70.0000.00717.41
8.1.60.0050.00517.54
8.1.50.0040.00417.54
8.1.40.0000.00817.37
8.1.30.0000.00817.53
8.1.20.0000.00917.60
8.1.10.0080.00017.54
8.1.00.0080.00017.43
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0080.00017.25
8.0.260.0030.00317.16
8.0.250.0030.00316.95
8.0.240.0050.00316.95
8.0.230.0030.00316.93
8.0.220.0030.00316.89
8.0.210.0060.00316.90
8.0.200.0050.00316.92
8.0.190.0030.00616.94
8.0.180.0000.01016.79
8.0.170.0040.00416.89
8.0.160.0060.00316.93
8.0.150.0030.00616.79
8.0.140.0040.00416.80
8.0.130.0000.00613.32
8.0.120.0040.00416.88
8.0.110.0000.00716.79
8.0.100.0050.00316.85
8.0.90.0080.00016.66
8.0.80.0030.01416.76
8.0.70.0040.00416.73
8.0.60.0030.00516.67
8.0.50.0000.00716.77
8.0.30.0110.00816.92
8.0.20.0120.00917.40
8.0.10.0040.00416.80
8.0.00.0080.01016.65
7.4.330.0030.00315.00
7.4.320.0030.00316.54
7.4.300.0000.00616.54
7.4.290.0030.00316.59
7.4.280.0070.00016.58
7.4.270.0000.00716.42
7.4.260.0030.00316.39
7.4.250.0000.00816.45
7.4.240.0040.00416.55
7.4.230.0000.00716.60
7.4.220.0120.00616.40
7.4.210.0070.00716.63
7.4.200.0040.00416.61
7.4.160.0130.00416.36
7.4.150.0120.01517.40
7.4.140.0070.01017.86
7.4.130.0070.01016.51
7.4.120.0140.00516.46
7.4.110.0090.00816.53
7.4.100.0040.01516.55
7.4.90.0100.00716.66
7.4.80.0100.01019.39
7.4.70.0160.00016.52
7.4.60.0150.00316.52
7.4.50.0000.00816.45
7.4.40.0070.01016.46
7.4.30.0040.01116.46
7.4.00.0030.00914.86
7.3.330.0070.00013.29
7.3.320.0050.00013.06
7.3.310.0030.00316.33
7.3.300.0000.00716.12
7.3.290.0060.00816.27
7.3.280.0110.00716.28
7.3.270.0150.00317.40
7.3.260.0130.00416.34
7.3.250.0110.00616.37
7.3.240.0100.00616.16
7.3.230.0070.01016.46
7.3.210.0030.01316.46
7.3.200.0120.00419.39
7.3.190.0120.00616.24
7.3.180.0030.01316.48
7.3.170.0130.00316.27
7.3.160.0040.01216.51
7.2.330.0120.00616.59
7.2.320.0100.01016.35
7.2.310.0060.01016.59
7.2.300.0040.01216.36
7.2.290.0150.00416.36
7.1.70.0000.00717.01
7.1.60.0060.00919.40
7.1.50.0100.01416.79
7.1.00.0000.08022.54
7.0.200.0040.00416.41
7.0.140.0000.08022.01
7.0.60.0170.08019.86
7.0.50.0100.08317.87
7.0.40.0070.07020.05
7.0.30.0530.05320.23
7.0.20.0270.05720.23
7.0.10.0030.09020.17
7.0.00.0070.04020.16
5.6.280.0070.06721.07
5.6.210.0230.06320.55
5.6.200.0070.05018.22
5.6.190.0100.06320.61
5.6.180.0270.05320.43
5.6.170.0230.07720.40
5.6.160.0070.08020.39
5.6.150.0070.08018.25
5.6.140.0030.05718.16
5.6.130.0070.04018.23
5.6.120.0000.04720.96
5.6.110.0000.06720.89
5.6.100.0000.04321.12
5.6.90.0100.07720.97
5.6.80.0100.08020.53
5.5.350.0030.04720.35
5.5.340.0100.05318.07
5.5.330.0030.05320.19
5.5.320.0070.08020.29
5.5.310.0170.04320.30
5.5.300.0070.04318.07
5.5.290.0030.08017.95
5.5.280.0030.09020.84
5.5.270.0100.08720.89
5.5.260.0070.04020.76
5.5.250.0070.03720.69
5.5.240.0170.07720.15
5.4.450.0130.03719.41
5.4.440.0130.05319.12
5.4.430.0270.04019.27
5.4.420.0200.04019.54
5.4.410.0200.02719.07
5.4.400.0500.05019.09
5.4.390.0770.02718.95
5.4.380.0130.05718.62
5.4.370.0100.05718.54
5.4.360.0170.05018.73
5.4.350.0170.05718.70
5.4.340.0200.06318.79
5.4.320.0040.03812.51
5.4.310.0080.03912.51
5.4.300.0100.04612.51
5.4.290.0080.04512.52
5.4.280.0070.04112.41
5.4.270.0070.03512.41
5.4.260.0050.03912.41
5.4.250.0050.03912.41
5.4.240.0100.03312.41
5.4.230.0060.03812.40
5.4.220.0060.04012.40
5.4.210.0060.03612.40
5.4.200.0060.03812.40
5.4.190.0040.03812.39
5.4.180.0060.03612.40
5.4.170.0050.04312.40
5.4.160.0080.03312.40
5.4.150.0080.03312.39
5.4.140.0100.04012.09
5.4.130.0070.03612.07
5.4.120.0050.03712.04
5.4.110.0060.03512.03
5.4.100.0070.03712.03
5.4.90.0080.03412.03
5.4.80.0040.03812.03
5.4.70.0030.03812.02
5.4.60.0060.03412.03
5.4.50.0080.03312.02
5.4.40.0080.03212.02
5.4.30.0070.03412.01
5.4.20.0100.03112.01
5.4.10.0040.03612.01
5.4.00.0060.03511.50
5.3.290.0050.03912.80
5.3.280.0060.04412.71
5.3.270.0040.04112.73
5.3.260.0070.03812.71
5.3.250.0070.03612.72
5.3.240.0050.04312.72
5.3.230.0090.03412.71
5.3.220.0030.04112.68
5.3.210.0060.04412.68
5.3.200.0060.03612.68
5.3.190.0040.05212.68
5.3.180.0060.03612.68
5.3.170.0110.05512.67
5.3.160.0060.03612.67
5.3.150.0050.03812.67
5.3.140.0040.03812.66
5.3.130.0050.03912.66
5.3.120.0060.03912.66
5.3.110.0050.03912.65
5.3.100.0060.04212.13
5.3.90.0070.03712.11
5.3.80.0070.04812.09
5.3.70.0050.04212.09
5.3.60.0060.04412.08
5.3.50.0020.04112.03
5.3.40.0070.04312.03
5.3.30.0070.03911.98
5.3.20.0050.03611.77
5.3.10.0060.03511.73
5.3.00.0080.03411.71
5.2.170.0060.0299.22
5.2.160.0060.0289.23
5.2.150.0040.0309.23
5.2.140.0070.0419.22
5.2.130.0030.0319.18
5.2.120.0100.0249.18
5.2.110.0040.0309.19
5.2.100.0030.0319.18
5.2.90.0040.0309.18
5.2.80.0050.0299.17
5.2.70.0050.0299.17
5.2.60.0060.0309.13
5.2.50.0050.0309.10
5.2.40.0080.0259.07
5.2.30.0050.0299.05
5.2.20.0060.0379.05
5.2.10.0080.0298.94
5.2.00.0050.0288.80
5.1.60.0030.0248.09
5.1.50.0030.0258.09
5.1.40.0030.0288.07
5.1.30.0060.0288.42
5.1.20.0050.0308.45
5.1.10.0050.0258.16
5.1.00.0060.0268.16
5.0.50.0020.0226.64
5.0.40.0020.0206.50
5.0.30.0040.0316.32
5.0.20.0020.0206.28
5.0.10.0030.0206.26
5.0.00.0030.0316.25
4.4.90.0030.0154.78
4.4.80.0030.0164.75
4.4.70.0040.0144.76
4.4.60.0040.0144.76
4.4.50.0060.0124.77
4.4.40.0040.0234.71
4.4.30.0040.0214.76
4.4.20.0030.0164.84
4.4.10.0020.0184.85
4.4.00.0080.0284.76
4.3.110.0030.0174.67
4.3.100.0020.0164.67
4.3.90.0020.0154.64
4.3.80.0030.0344.59
4.3.70.0030.0144.63
4.3.60.0030.0164.62
4.3.50.0030.0224.63
4.3.40.0040.0234.54
4.3.30.0040.0143.30
4.3.20.0020.0163.28
4.3.10.0010.0173.23
4.3.00.0000.01715.96

preferences:
72.55 ms | 401 KiB | 5 Q