3v4l.org

run code in 300+ PHP versions simultaneously
<?php class YO { private $test = 0; public function add () { return $this->test++; } } $test = new YO(); echo $test->add(); echo $test->add(); echo $test->add(); echo $test->add();

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.0070.01116.50
8.3.60.0110.00416.63
8.3.50.0110.00722.10
8.3.40.0150.00018.56
8.3.30.0070.00719.09
8.3.20.0080.00020.38
8.3.10.0070.00023.48
8.3.00.0040.00419.38
8.2.180.0150.00318.56
8.2.170.0110.00322.96
8.2.160.0000.01420.25
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00022.25
8.2.110.0060.00322.24
8.2.100.0060.00617.91
8.2.90.0040.00419.35
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0040.00419.94
8.2.30.0060.00319.89
8.2.20.0000.00817.66
8.2.10.0040.00418.07
8.2.00.0040.00417.57
8.1.280.0140.00025.92
8.1.270.0050.00323.88
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0060.00323.65
8.1.230.0070.00319.22
8.1.220.0080.00017.75
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.43
8.1.160.0040.00421.86
8.1.150.0040.00418.59
8.1.140.0080.00017.43
8.1.130.0000.00717.82
8.1.120.0040.00417.39
8.1.110.0080.00317.37
8.1.100.0040.00417.35
8.1.90.0000.00717.39
8.1.80.0040.00417.41
8.1.70.0000.00717.28
8.1.60.0090.00017.55
8.1.50.0030.00517.54
8.1.40.0020.00517.47
8.1.30.0040.00417.55
8.1.20.0000.00717.54
8.1.10.0070.00017.46
8.1.00.0040.00417.38
8.0.300.0040.00418.77
8.0.290.0070.00017.16
8.0.280.0040.00418.45
8.0.270.0000.00717.24
8.0.260.0030.00317.26
8.0.250.0070.00016.87
8.0.240.0060.00316.95
8.0.230.0000.00616.87
8.0.220.0000.00716.72
8.0.210.0030.00316.81
8.0.200.0030.00316.89
8.0.190.0050.00316.89
8.0.180.0000.00716.88
8.0.170.0000.00816.89
8.0.160.0050.00316.77
8.0.150.0040.00416.83
8.0.140.0000.00716.81
8.0.130.0000.00613.34
8.0.120.0000.00816.73
8.0.110.0000.00716.74
8.0.100.0030.00316.82
8.0.90.0050.00316.96
8.0.80.0060.00916.81
8.0.70.0050.00316.83
8.0.60.0040.00416.80
8.0.50.0000.00716.70
8.0.30.0120.00617.06
8.0.20.0120.00717.40
8.0.10.0070.00016.82
8.0.00.0080.01116.73
7.4.330.0050.00015.00
7.4.320.0060.00016.44
7.4.300.0000.00716.57
7.4.290.0030.00316.54
7.4.280.0000.00716.52
7.4.270.0030.00316.59
7.4.260.0030.00516.49
7.4.250.0050.00216.59
7.4.240.0020.00516.60
7.4.230.0030.00316.61
7.4.220.0000.01616.61
7.4.210.0070.00716.58
7.4.200.0070.00016.32
7.4.190.0030.00316.50
7.4.160.0170.00016.53
7.4.150.0090.01317.40
7.4.140.0140.00517.86
7.4.130.0120.00916.36
7.4.120.0100.00816.50
7.4.110.0130.01416.48
7.4.100.0100.00716.35
7.4.90.0060.01216.55
7.4.80.0140.00919.39
7.4.70.0140.00516.50
7.4.60.0140.01016.48
7.4.50.0080.00016.45
7.4.40.0090.00616.28
7.4.30.0100.00616.41
7.4.00.0130.00314.91
7.3.330.0060.00013.20
7.3.320.0030.00313.05
7.3.310.0070.00016.14
7.3.300.0050.00216.25
7.3.290.0100.00816.24
7.3.280.0100.00916.22
7.3.270.0120.00617.40
7.3.260.0040.01316.48
7.3.250.0130.00616.44
7.3.240.0080.01116.26
7.3.230.0140.00916.45
7.3.210.0090.01016.30
7.3.200.0120.00619.39
7.3.190.0100.00516.50
7.3.180.0070.01116.57
7.3.170.0120.00916.44
7.3.160.0090.00616.23
7.3.120.0070.00314.92
7.2.330.0070.01016.72
7.2.320.0140.00716.78
7.2.310.0140.00316.39
7.2.300.0080.00816.74
7.2.290.0120.01216.72
7.2.60.0030.01316.77
7.2.00.0030.01019.26
7.1.200.0030.01115.60
7.1.100.0060.00618.08
7.1.70.0000.00817.07
7.1.60.0060.01619.46
7.1.50.0170.02034.76
7.1.00.0000.08022.46
7.0.200.0100.00016.80
7.0.140.0100.06722.18
7.0.60.0030.08319.82
7.0.50.0170.07017.87
7.0.40.0130.08020.26
7.0.30.0270.04020.16
7.0.20.0300.08720.14
7.0.10.0430.07720.19
7.0.00.0170.05720.25
5.6.280.0100.06721.11
5.6.210.0000.07720.55
5.6.200.0070.07718.14
5.6.190.0070.07020.47
5.6.180.3770.04320.39
5.6.170.0270.04320.48
5.6.160.0130.07020.57
5.6.150.0100.06718.25
5.6.140.0170.07718.14
5.6.130.0170.03718.18
5.6.120.0170.07721.02
5.6.110.0070.07021.02
5.6.100.0130.08021.11
5.6.90.0070.07020.97
5.6.80.0030.04720.39
5.6.70.0230.04020.50
5.5.350.0230.07320.38
5.5.340.0100.07717.99
5.5.330.0130.07720.42
5.5.320.0300.04320.19
5.5.310.0370.06720.24
5.5.300.0100.07717.95
5.5.290.0070.08017.99
5.5.280.0130.08020.82
5.5.270.0070.04020.80
5.5.260.0100.08320.79
5.5.250.0030.08020.49
5.5.240.0100.06720.05
5.4.450.0570.06019.48
5.4.440.0830.07019.33
5.4.430.1170.03019.58
5.4.420.0730.00019.45
5.4.410.0030.06318.77
5.4.400.0200.06318.87
5.4.390.0200.05318.53
5.4.380.0200.05318.75
5.4.370.0000.04718.49
5.4.360.0070.03718.75
5.4.350.0070.04112.02
5.4.340.0060.04812.02
5.4.320.0030.03812.50
5.4.310.0070.03612.50
5.4.300.0070.03512.50
5.4.290.0080.04012.50
5.4.280.0090.03312.39
5.4.270.0060.03812.39
5.4.260.0050.03912.39
5.4.250.0060.03812.39
5.4.240.0050.03712.39
5.4.230.0070.03712.39
5.4.220.0080.03512.39
5.4.210.0060.03612.39
5.4.200.0070.03712.39
5.4.190.0060.03712.38
5.4.180.0070.03612.38
5.4.170.0040.03912.40
5.4.160.0060.03612.39
5.4.150.0060.03612.39
5.4.140.0060.03712.07
5.4.130.0090.03612.05
5.4.120.0060.04012.02
5.4.110.0080.03712.01
5.4.100.0090.04512.01
5.4.90.0070.03812.01
5.4.80.0080.03612.01
5.4.70.0050.03712.01
5.4.60.0110.03912.01
5.4.50.0070.03912.01
5.4.40.0080.03312.00
5.4.30.0070.03611.99
5.4.20.0040.03811.99
5.4.10.0060.03611.99
5.4.00.0070.03611.48
5.3.290.0090.03612.80
5.3.280.0080.03612.71
5.3.270.0040.04112.72
5.3.260.0030.04312.72
5.3.250.0070.03612.72
5.3.240.0050.03812.72
5.3.230.0050.04012.71
5.3.220.0060.03812.68
5.3.210.0060.04012.68
5.3.200.0110.04312.68
5.3.190.0120.04612.68
5.3.180.0040.05812.68
5.3.170.0070.03812.67
5.3.160.0050.04112.68
5.3.150.0040.04212.67
5.3.140.0060.03812.66
5.3.130.0060.04112.66
5.3.120.0070.04012.66
5.3.110.0090.03812.66
5.3.100.0100.04312.12
5.3.90.0070.05312.10
5.3.80.0100.04812.09
5.3.70.0080.05012.09
5.3.60.0110.04712.07
5.3.50.0090.04912.03
5.3.40.0090.05012.02
5.3.30.0100.04811.97
5.3.20.0070.04911.76
5.3.10.0080.05111.73
5.3.00.0100.04911.71
5.2.170.0070.0419.22
5.2.160.0060.0339.22
5.2.150.0060.0319.22
5.2.140.0050.0329.21
5.2.130.0050.0309.18
5.2.120.0060.0299.18
5.2.110.0090.0299.18
5.2.100.0050.0309.18
5.2.90.0070.0289.18
5.2.80.0040.0319.17
5.2.70.0040.0319.18
5.2.60.0060.0299.12
5.2.50.0060.0319.09
5.2.40.0070.0289.07
5.2.30.0080.0289.04
5.2.20.0040.0329.03
5.2.10.0070.0278.93
5.2.00.0040.0308.80
5.1.60.0040.0258.08
5.1.50.0040.0278.08
5.1.40.0040.0268.07
5.1.30.0080.0248.41
5.1.20.0090.0228.44
5.1.10.0030.0278.16
5.1.00.0050.0258.16
5.0.50.0030.0226.64
5.0.40.0050.0186.49
5.0.30.0010.0346.31
5.0.20.0030.0206.27
5.0.10.0040.0206.25
5.0.00.0040.0316.24
4.4.90.0000.0194.78
4.4.80.0040.0144.75
4.4.70.0030.0164.75
4.4.60.0030.0154.75
4.4.50.0050.0144.77
4.4.40.0040.0244.71
4.4.30.0040.0144.76
4.4.20.0040.0154.85
4.4.10.0020.0174.85
4.4.00.0010.0274.76
4.3.110.0050.0134.67
4.3.100.0020.0154.67
4.3.90.0070.0124.63
4.3.80.0040.0234.58
4.3.70.0020.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0030.0153.30
4.3.20.0040.0133.28
4.3.10.0020.0223.24
4.3.00.0100.0307.63

preferences:
57.74 ms | 401 KiB | 5 Q