3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class A { function B() { var_dump($this); } static function C() { var_dump($this); } } $a = new A(); $a->B(); $a->C();

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.0180.00316.58
8.3.60.0070.00716.63
8.3.50.0130.00522.05
8.3.40.0000.01518.77
8.3.30.0110.00718.82
8.3.20.0040.00420.13
8.3.10.0080.00023.51
8.3.00.0080.00019.02
8.2.190.0110.00716.75
8.2.180.0110.00716.75
8.2.170.0090.00622.96
8.2.160.0110.00420.29
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0110.00326.16
8.2.120.0030.00617.50
8.2.110.0040.00422.37
8.2.100.0110.00017.91
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0050.00319.82
8.2.30.0020.00518.22
8.2.20.0040.00417.72
8.2.10.0040.00418.05
8.2.00.0040.00417.55
8.1.280.0060.00925.92
8.1.270.0060.00323.97
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0030.00623.79
8.1.230.0070.00419.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0000.00721.88
8.1.150.0000.00818.54
8.1.140.0050.00217.38
8.1.130.0040.00417.81
8.1.120.0040.00417.29
8.1.110.0050.00317.37
8.1.100.0000.00717.38
8.1.90.0000.00717.29
8.1.80.0050.00217.42
8.1.70.0040.00417.39
8.1.60.0080.00017.46
8.1.50.0030.00517.49
8.1.40.0000.01017.41
8.1.30.0080.00017.47
8.1.20.0000.00717.51
8.1.10.0000.00817.51
8.1.00.0040.00417.57
8.0.300.0030.00618.77
8.0.290.0000.00716.63
8.0.280.0030.00318.40
8.0.270.0000.00716.80
8.0.260.0000.00617.06
8.0.250.0030.00316.98
8.0.240.0000.00716.93
8.0.230.0040.00416.92
8.0.220.0000.00716.77
8.0.210.0070.00016.89
8.0.200.0030.00316.84
8.0.190.0040.00416.91
8.0.180.0040.00416.96
8.0.170.0030.00616.86
8.0.160.0050.00216.88
8.0.150.0040.00416.82
8.0.140.0030.00616.74
8.0.130.0030.00313.34
8.0.120.0000.00716.77
8.0.110.0040.00416.80
8.0.100.0000.00816.75
8.0.90.0000.00716.76
8.0.80.0150.00616.80
8.0.70.0030.00616.73
8.0.60.0040.00416.71
8.0.50.0040.00416.70
8.0.30.0080.01216.99
8.0.20.0080.01017.43
8.0.10.0040.00416.95
8.0.00.0070.01016.71
7.4.330.0030.00315.00
7.4.320.0000.00616.48
7.4.300.0030.00316.49
7.4.290.0040.00416.41
7.4.280.0040.00416.57
7.4.270.0070.00016.63
7.4.260.0050.00316.50
7.4.250.0040.00416.36
7.4.240.0020.00516.53
7.4.230.0030.00316.40
7.4.220.0060.01216.53
7.4.210.0000.01416.69
7.4.200.0060.00316.39
7.4.160.0100.00616.52
7.4.150.0060.01217.40
7.4.140.0110.01317.86
7.4.130.0110.00516.57
7.4.120.0090.00716.68
7.4.110.0130.00416.64
7.4.100.0080.01216.35
7.4.90.0100.01016.61
7.4.80.0150.00319.39
7.4.70.0090.00916.63
7.4.60.0070.01116.32
7.4.50.0040.00416.63
7.4.40.0110.00516.40
7.4.30.0070.01116.38
7.4.10.0030.01314.81
7.4.00.0080.00915.09
7.3.330.0000.00613.21
7.3.320.0000.00513.30
7.3.310.0080.00016.38
7.3.300.0000.00716.40
7.3.290.0110.00416.40
7.3.280.0090.00916.34
7.3.270.0100.00717.40
7.3.260.0170.00416.32
7.3.250.0060.01316.57
7.3.240.0060.01016.34
7.3.230.0040.01316.45
7.3.210.0060.01116.35
7.3.200.0090.01219.39
7.3.190.0110.00516.20
7.3.180.0090.00616.42
7.3.170.0100.00716.45
7.3.160.0160.00016.49
7.3.130.0030.01514.96
7.3.120.0080.00814.74
7.3.110.0160.00314.75
7.3.100.0060.00915.07
7.3.90.0000.01614.91
7.3.80.0060.00614.84
7.3.70.0040.01114.77
7.3.60.0030.00914.66
7.3.50.0000.01714.67
7.3.40.0060.00914.64
7.3.30.0070.00314.70
7.3.20.0090.00616.62
7.3.10.0090.00716.52
7.3.00.0080.00516.30
7.2.330.0070.01016.64
7.2.320.0130.00416.29
7.2.310.0090.01216.48
7.2.300.0090.00916.40
7.2.290.0110.00616.57
7.2.260.0070.01115.08
7.2.250.0110.00715.23
7.2.240.0040.01114.68
7.2.230.0060.01015.09
7.2.220.0030.01414.56
7.2.210.0060.00614.78
7.2.200.0080.00814.94
7.2.190.0040.00714.99
7.2.180.0090.00615.07
7.2.170.0040.00715.04
7.2.160.0040.00814.96
7.2.150.0060.00916.94
7.2.140.0040.01116.62
7.2.130.0120.00316.48
7.2.120.0100.00516.59
7.2.110.0130.00716.75
7.2.100.0080.00916.57
7.2.90.0110.00516.67
7.2.80.0100.00816.58
7.2.70.0110.01016.75
7.2.60.0090.00516.65
7.2.50.0200.00316.56
7.2.40.0130.01016.73
7.2.30.0120.00716.95
7.2.20.0080.00716.45
7.2.10.0150.00616.77
7.2.00.0050.00917.51
7.1.330.0000.01315.89
7.1.320.0110.00315.69
7.1.310.0040.01115.50
7.1.300.0040.01415.82
7.1.290.0030.01015.78
7.1.280.0040.00815.67
7.1.270.0030.01015.52
7.1.260.0070.00715.47
7.1.250.0110.00215.58
7.1.240.0110.00415.90
7.1.230.0040.01215.49
7.1.220.0040.01115.66
7.1.210.0100.00315.68
7.1.200.0030.00915.80
7.1.190.0040.01115.50
7.1.180.0060.00615.74
7.1.170.0030.00915.47
7.1.160.0070.00715.65
7.1.150.0060.00615.48
7.1.140.0070.00715.50
7.1.130.0030.01115.68
7.1.120.0070.00715.82
7.1.110.0100.00315.59
7.1.100.0070.00617.02
7.1.90.0090.00315.78
7.1.80.0070.00715.83
7.1.70.0050.00416.28
7.1.60.0090.01117.62
7.1.50.0080.00516.23
7.1.40.0100.00615.48
7.1.30.0070.00415.55
7.1.20.0110.00315.70
7.1.10.0070.00715.73
7.1.00.0100.03819.04
7.0.330.0060.00315.57
7.0.320.0070.00715.33
7.0.310.0040.00415.29
7.0.300.0000.01415.41
7.0.290.0060.00915.23
7.0.280.0040.01115.35
7.0.270.0030.00715.50
7.0.260.0110.00415.31
7.0.250.0000.01315.55
7.0.240.0000.00915.39
7.0.230.0030.00715.18
7.0.220.0000.01215.46
7.0.210.0040.00815.33
7.0.200.0070.00315.93
7.0.190.0100.00715.35
7.0.180.0040.01215.46
7.0.170.0100.00315.33
7.0.160.0120.00315.56
7.0.150.0070.01015.24
7.0.140.0070.03718.67
7.0.130.0040.00415.43
7.0.120.0100.00315.57
7.0.110.0040.00715.39
7.0.100.0100.00315.13
7.0.90.0130.00015.38
7.0.80.0080.03517.49
7.0.70.0000.02417.57
7.0.60.0050.02317.79
7.0.50.0120.04417.91
7.0.40.0060.04616.81
7.0.30.0030.02816.71
7.0.20.0040.04616.85
7.0.10.0050.03016.74
7.0.00.0040.02716.85
5.6.400.0030.01214.51
5.6.390.0060.00914.17
5.6.380.0000.01414.29
5.6.370.0040.00714.03
5.6.360.0100.00314.29
5.6.350.0030.00914.45
5.6.340.0000.01514.50
5.6.330.0000.01114.18
5.6.320.0000.01714.41
5.6.310.0090.00614.25
5.6.300.0040.00714.27
5.6.290.0110.00414.10
5.6.280.0030.04217.76
5.6.270.0080.00014.11
5.6.260.0030.01214.30
5.6.250.0100.00014.44
5.6.240.0040.01114.14
5.6.230.0050.04617.34
5.6.220.0030.02217.35
5.6.210.0030.04117.57
5.6.200.0100.04317.61
5.6.190.0070.03617.71
5.6.180.0050.02717.55
5.6.170.0070.02317.66
5.6.160.0050.02617.66
5.6.150.0030.02317.68
5.6.140.0080.04417.61
5.6.130.0090.04117.71
5.6.120.0080.03817.63
5.6.110.0040.03417.61
5.6.100.0080.03817.65
5.6.90.0030.03017.55
5.6.80.0110.03617.40
5.6.70.0030.03317.35
5.6.60.0050.04717.30
5.6.50.0100.04217.29
5.6.40.0060.04017.38
5.6.30.0020.04617.28
5.6.20.0060.04317.30
5.6.10.0000.03317.25
5.6.00.0090.03717.25
5.5.380.0100.00014.32
5.5.370.0050.04617.38
5.5.360.0070.04717.31
5.5.350.0080.04217.48
5.5.340.0070.04317.63
5.5.330.0070.04517.57
5.5.320.0020.04817.61
5.5.310.0070.03517.64
5.5.300.0040.04517.49
5.5.290.0080.04217.54
5.5.280.0070.03117.52
5.5.270.0030.04617.46
5.5.260.0030.04017.55
5.5.250.0070.04217.52
5.5.240.0080.03717.40
5.5.230.0060.02117.04
5.5.220.0050.04217.29
5.5.210.0030.02717.27
5.5.200.0080.04417.20
5.5.190.0040.03116.99
5.5.180.0070.04517.13
5.5.170.0110.00314.24
5.5.160.0050.04217.27
5.5.150.0050.03217.04
5.5.140.0080.04017.14
5.5.130.0130.02117.05
5.5.120.0080.02117.15
5.5.110.0030.04517.20
5.5.100.0020.03017.03
5.5.90.0080.02917.02
5.5.80.0030.04717.08
5.5.70.0110.04117.13
5.5.60.0080.04217.18
5.5.50.0050.03017.07
5.5.40.0030.02216.93
5.5.30.0060.01917.15
5.5.20.0080.03216.92
5.5.10.0030.04817.28
5.5.00.0080.01817.02
5.4.450.0070.03015.24
5.4.440.0020.03215.31
5.4.430.0050.03315.19
5.4.420.0020.04115.23
5.4.410.0000.03715.15
5.4.400.0030.03914.92
5.4.390.0030.02315.05
5.4.380.0020.03115.02
5.4.370.0070.02015.05
5.4.360.0070.04015.00
5.4.350.0050.02515.03
5.4.340.0030.02214.92
5.4.330.0050.00511.08
5.4.320.0020.03514.88
5.4.310.0050.03515.13
5.4.300.0020.04314.99
5.4.290.0070.04014.99
5.4.280.0050.03314.96
5.4.270.0070.03214.89
5.4.260.0050.03815.03
5.4.250.0050.03615.06
5.4.240.0020.04415.18
5.4.230.0050.03815.01
5.4.220.0050.03115.01
5.4.210.0090.03414.99
5.4.200.0030.02515.09
5.4.190.0040.02015.00
5.4.180.0050.01915.09
5.4.170.0070.04014.88
5.4.160.0090.03214.86
5.4.150.0020.03214.96
5.4.140.0040.01913.67
5.4.130.0060.02313.65
5.4.120.0020.02413.76
5.4.110.0030.02213.77
5.4.100.0020.02713.68
5.4.90.0050.01813.69
5.4.80.0050.02013.68
5.4.70.0010.02413.79
5.4.60.0050.02213.72
5.4.50.0030.01813.68
5.4.40.0040.02013.71
5.4.30.0030.02113.68
5.4.20.0020.02413.69
5.4.10.0050.02313.76
5.4.00.0000.02913.45
5.3.290.0050.02212.83
5.3.280.0050.03012.72
5.3.270.0060.01812.74
5.3.260.0030.03912.82
5.3.250.0030.01912.78
5.3.240.0030.02312.78
5.3.230.0000.02512.78
5.3.220.0050.02212.71
5.3.210.0110.01512.76
5.3.200.0030.02012.80
5.3.190.0020.02512.74
5.3.180.0030.02012.73
5.3.170.0050.02112.70
5.3.160.0050.02012.79
5.3.150.0030.02312.78
5.3.140.0010.02312.76
5.3.130.0080.02112.73
5.3.120.0040.02112.73
5.3.110.0030.02312.67
5.3.100.0030.01812.50
5.3.90.0020.02012.46
5.3.80.0020.02212.46
5.3.70.0010.02412.46
5.3.60.0050.02212.52
5.3.50.0070.01712.47
5.3.40.0030.01812.46
5.3.30.0050.01912.44
5.3.20.0040.01812.35
5.3.10.0030.01512.31
5.3.00.0020.02012.32
5.2.170.0000.02712.34
5.2.160.0030.02712.34
5.2.150.0000.03012.34
5.2.140.0000.02712.34
5.2.130.0030.02712.34
5.2.120.0070.02012.34
5.2.110.0030.02312.34
5.2.100.0000.03012.34
5.2.90.0000.02712.34
5.2.80.0030.02312.34
5.2.70.0000.03012.34
5.2.60.0100.01712.34
5.2.50.0100.02012.34
5.2.40.0030.02712.34
5.2.30.0000.02712.34
5.2.20.0070.02712.34
5.2.10.0000.03012.34
5.2.00.0000.02312.34
5.1.60.0000.02012.34
5.1.50.0000.02712.34
5.1.40.0000.02012.34
5.1.30.0000.03012.34
5.1.20.0000.02312.34
5.1.10.0000.02312.34
5.1.00.0070.01712.34
5.0.50.0000.01712.34
5.0.40.0000.01712.34
5.0.30.0030.03712.34
5.0.20.0000.01712.34
5.0.10.0030.01312.34
5.0.00.0070.02012.34
4.4.90.0030.01312.34
4.4.80.0000.01712.34
4.4.70.0000.01712.34
4.4.60.0000.01712.34
4.4.50.0070.00712.34
4.4.40.0000.02012.34
4.4.30.0000.01312.34
4.4.20.0000.01312.34
4.4.10.0000.01312.34
4.4.00.0000.02712.34
4.3.110.0030.01012.34
4.3.100.0030.01012.34
4.3.90.0030.01012.34
4.3.80.0000.02012.34
4.3.70.0000.01312.34
4.3.60.0000.01312.34
4.3.50.0000.01312.34
4.3.40.0000.02012.34
4.3.30.0000.01712.34
4.3.20.0030.02012.34
4.3.10.0000.01712.34
4.3.00.0000.01312.34

preferences:
34.21 ms | 401 KiB | 5 Q