3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassA { public function foo(){ echo get_class($this); } } class ClassB extends ClassA { public function foo(){ echo get_class($this); } } $A = new ClassA(); $B = new ClassB(); $A->foo(); $B->foo();

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.40.0060.00918.80
8.3.30.0000.01418.97
8.3.20.0040.00420.33
8.3.10.0050.00323.64
8.3.00.0060.00319.09
8.2.170.0150.00022.96
8.2.160.0070.01020.19
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00422.28
8.2.110.0080.00022.08
8.2.100.0060.00617.90
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0000.00818.11
8.2.20.0000.00817.67
8.2.10.0050.00217.86
8.2.00.0030.00617.52
8.1.270.0060.00923.88
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.98
8.1.230.0040.00819.10
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.13
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0060.00318.54
8.1.160.0050.00221.88
8.1.150.0060.00318.62
8.1.140.0070.00017.45
8.1.130.0040.00417.82
8.1.120.0080.00017.28
8.1.110.0040.00417.36
8.1.100.0000.00717.45
8.1.90.0030.00317.44
8.1.80.0030.00517.35
8.1.70.0030.00317.25
8.1.60.0000.00817.61
8.1.50.0040.00417.54
8.1.40.0000.00917.52
8.1.30.0040.00417.61
8.1.20.0000.00717.63
8.1.10.0040.00417.55
8.1.00.0040.00417.46
8.0.300.0000.00720.61
8.0.290.0060.00317.05
8.0.280.0040.00418.43
8.0.270.0040.00417.24
8.0.260.0030.00317.18
8.0.250.0030.00316.89
8.0.240.0040.00416.84
8.0.230.0030.00316.87
8.0.220.0000.00816.78
8.0.210.0070.00016.84
8.0.200.0030.00316.75
8.0.190.0080.00016.88
8.0.180.0000.00716.88
8.0.170.0040.00416.86
8.0.160.0000.00716.72
8.0.150.0040.00416.73
8.0.140.0040.00416.68
8.0.130.0000.00513.25
8.0.120.0080.00016.75
8.0.110.0000.00716.72
8.0.100.0000.00716.85
8.0.90.0070.00016.77
8.0.80.0070.00716.81
8.0.70.0000.00716.92
8.0.60.0040.00416.64
8.0.50.0040.00416.81
8.0.30.0140.00417.07
8.0.20.0080.01017.40
8.0.10.0000.00816.94
8.0.00.0170.00916.72
7.4.330.0060.00015.03
7.4.320.0050.00216.45
7.4.300.0030.00316.61
7.4.290.0000.00716.42
7.4.280.0090.00016.49
7.4.270.0000.00816.50
7.4.260.0030.00316.60
7.4.250.0040.00416.36
7.4.240.0020.00516.43
7.4.230.0070.00016.60
7.4.220.0070.01116.66
7.4.210.0090.00616.56
7.4.200.0000.00716.62
7.4.190.0040.00416.46
7.4.160.0070.01016.51
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0100.00716.50
7.4.120.0080.00816.54
7.4.110.0110.00716.44
7.4.100.0100.01316.39
7.4.90.0060.01016.45
7.4.80.0040.01419.39
7.4.70.0030.01416.57
7.4.60.0060.00916.35
7.4.50.0030.00516.65
7.4.40.0060.00922.77
7.4.30.0110.01216.57
7.4.10.0060.01314.87
7.4.00.0070.00914.76
7.3.330.0060.00013.05
7.3.320.0030.00313.09
7.3.310.0000.00816.27
7.3.300.0030.00316.27
7.3.290.0110.00716.25
7.3.280.0090.00616.23
7.3.270.0130.00317.40
7.3.260.0100.00716.21
7.3.250.0120.00616.42
7.3.240.0130.01016.15
7.3.230.0030.01416.50
7.3.210.0070.01416.25
7.3.200.0090.00919.39
7.3.190.0140.00716.32
7.3.180.0130.00616.38
7.3.170.0120.00316.29
7.3.160.0090.00616.17
7.3.130.0070.01114.60
7.3.120.0060.00814.90
7.3.110.0070.01014.75
7.3.100.0030.01514.80
7.3.90.0090.00614.72
7.3.80.0000.01014.96
7.3.70.0060.00914.73
7.3.60.0000.00914.41
7.3.50.0070.00314.57
7.3.40.0000.01414.79
7.3.30.0070.01014.53
7.3.20.0090.00616.39
7.3.10.0040.01216.58
7.3.00.0090.00316.56
7.2.330.0080.01516.24
7.2.320.0000.01716.48
7.2.310.0140.00416.57
7.2.300.0060.01116.74
7.2.290.0140.00316.43
7.2.260.0090.00615.24
7.2.250.0080.01114.83
7.2.240.0120.00315.08
7.2.230.0100.00715.07
7.2.220.0040.00715.32
7.2.210.0070.01014.83
7.2.200.0070.00714.70
7.2.190.0090.00615.05
7.2.180.0060.00914.81
7.2.170.0100.00615.02
7.2.160.0070.00714.96
7.2.150.0060.01016.89
7.2.140.0070.00316.98
7.2.130.0060.00616.54
7.2.120.0060.00616.71
7.2.110.0070.00716.92
7.2.100.0070.00416.88
7.2.90.0100.00716.67
7.2.80.0080.00816.93
7.2.70.0120.00616.90
7.2.60.0050.01216.78
7.2.50.0000.01716.90
7.2.40.0150.00416.96
7.2.30.0120.00016.75
7.2.20.0030.01316.71
7.2.10.0040.01216.91
7.2.00.0030.01018.23
7.1.330.0000.01415.48
7.1.320.0100.00715.92
7.1.310.0040.01115.97
7.1.300.0060.00615.80
7.1.290.0110.00315.77
7.1.280.0060.01015.71
7.1.270.0040.01115.45
7.1.260.0000.01115.69
7.1.250.0000.01215.86
7.1.240.0040.00815.76
7.1.230.0110.00315.84
7.1.220.0030.00915.80
7.1.210.0060.00615.86
7.1.200.0020.01015.80
7.1.190.0040.01115.77
7.1.180.0030.00715.59
7.1.170.0030.01015.79
7.1.160.0030.00515.59
7.1.150.0030.01315.63
7.1.140.0000.01015.63
7.1.130.0040.00815.63
7.1.120.0000.01115.55
7.1.110.0030.01015.92
7.1.100.0060.00616.88
7.1.90.0030.01315.55
7.1.80.0040.00815.61
7.1.70.0020.00916.33
7.1.60.0060.01117.62
7.1.50.0000.01616.33
7.1.40.0060.00615.73
7.1.30.0030.01015.61
7.1.20.0040.00715.84
7.1.10.0000.01315.89
7.1.00.0050.04019.12
7.0.330.0030.01015.38
7.0.320.0060.00615.38
7.0.310.0080.00815.44
7.0.300.0060.00615.27
7.0.290.0040.00815.33
7.0.280.0070.00715.13
7.0.270.0000.00815.21
7.0.260.0040.00415.39
7.0.250.0090.00315.52
7.0.240.0100.00615.18
7.0.230.0060.00615.27
7.0.220.0000.01115.27
7.0.210.0100.00315.17
7.0.200.0080.01114.86
7.0.190.0060.00915.23
7.0.180.0080.00415.46
7.0.170.0050.00515.46
7.0.160.0040.00815.33
7.0.150.0000.01415.43
7.0.140.0050.04018.66
7.0.130.0030.00615.11
7.0.120.0030.01015.11
7.0.110.0080.00615.44
7.0.100.0070.00415.38
7.0.90.0080.00415.26
7.0.80.0000.01415.36
7.0.70.0100.00315.49
7.0.60.0070.02617.59
7.0.50.0100.03616.65
7.0.40.0050.04717.01
7.0.30.0250.04516.77
7.0.20.0150.03516.88
7.0.10.0210.02316.72
7.0.00.0080.04016.73
5.6.400.0050.00514.12
5.6.390.0030.00914.38
5.6.380.0060.00314.27
5.6.370.0000.01214.05
5.6.360.0030.01014.44
5.6.350.0000.00914.56
5.6.340.0080.00314.27
5.6.330.0030.00914.68
5.6.320.0050.00513.86
5.6.310.0080.00614.38
5.6.300.0030.01314.52
5.6.290.0030.00714.53
5.6.280.0050.03817.54
5.6.270.0060.00914.09
5.6.260.0000.01614.39
5.6.250.0060.00314.27
5.6.240.0000.01114.39
5.6.230.0110.00414.21
5.6.220.0030.01014.31
5.6.210.0030.04917.38
5.6.200.0070.04316.16
5.6.190.0050.02717.54
5.6.180.0170.03217.43
5.6.170.0070.02817.55
5.6.160.0120.03717.30
5.6.150.0040.02416.24
5.6.140.0050.03016.29
5.6.130.0100.04016.21
5.6.120.0070.03617.54
5.6.110.0050.04317.63
5.6.100.0140.04017.65
5.6.90.0070.04417.48
5.6.80.0050.02717.25
5.6.70.2100.02717.22
5.6.60.0040.00414.39
5.6.50.0030.00514.11
5.6.40.0030.01114.27
5.6.30.0060.00914.37
5.6.20.0100.00314.52
5.6.10.0000.01114.28
5.6.00.0000.01714.17
5.5.380.0070.00714.43
5.5.370.0030.01414.47
5.5.360.0040.00413.93
5.5.350.0120.04517.34
5.5.340.0070.04116.09
5.5.330.0030.04917.27
5.5.320.0180.04017.48
5.5.310.0110.02817.37
5.5.300.0110.01815.91
5.5.290.0090.03216.21
5.5.280.0050.02717.49
5.5.270.0050.03117.68
5.5.260.0030.04817.46
5.5.250.0050.03117.27
5.5.240.0020.04617.09
5.5.230.0000.01414.33
5.5.220.0000.01014.21
5.5.210.0100.00314.15
5.5.200.0100.00314.29
5.5.190.0060.00614.36
5.5.180.0040.00813.96
5.5.170.0070.00714.08
5.5.160.0030.00914.07
5.5.150.0060.00614.13
5.5.140.0110.00414.14
5.5.130.0070.01014.35
5.5.120.0030.00614.21
5.5.110.0030.01014.26
5.5.100.0030.00914.10
5.5.90.0070.00713.97
5.5.80.0000.01014.52
5.5.70.0060.00913.88
5.5.60.0100.00714.28
5.5.50.0030.00614.34
5.5.40.0000.00814.23
5.5.30.0040.00914.14
5.5.20.0030.00613.98
5.5.10.0070.00714.35
5.5.00.0000.01214.25
5.4.450.1670.02015.12
5.4.440.1960.02115.07
5.4.430.1500.02014.96
5.4.420.1750.01815.29
5.4.410.1770.02015.14
5.4.400.1760.02014.98
5.4.390.1790.02515.07
5.4.380.1760.02114.94
5.4.370.1870.02314.93
5.4.360.1940.02014.86
5.4.350.1630.01815.07
5.4.340.1660.02315.00
5.4.330.0000.01110.80
5.4.320.1750.02414.95
5.4.310.1730.02314.84
5.4.300.1800.02015.05
5.4.290.1630.01814.97
5.4.280.1730.02415.11
5.4.270.1660.01814.94
5.4.260.0080.02315.05
5.4.250.0080.04015.11
5.4.240.2140.01815.03
5.4.230.1850.02514.98
5.4.220.1720.02315.11
5.4.210.1800.02014.96
5.4.200.1900.02315.01
5.4.190.1550.02415.01
5.4.180.1650.02315.04
5.4.170.1550.02315.06
5.4.160.1680.02315.03
5.4.150.0090.03514.97
5.4.140.0080.03313.78
5.4.130.1800.02013.66
5.4.120.1770.01713.86
5.4.110.1850.02413.65
5.4.100.1650.02513.79
5.4.90.1600.01813.73
5.4.80.1770.02013.67
5.4.70.1710.02313.77
5.4.60.1620.01913.85
5.4.50.1620.01913.69
5.4.40.1600.02013.74
5.4.30.1750.01813.63
5.4.20.1690.01713.67
5.4.10.1630.02013.59
5.4.00.1770.01813.53
5.3.290.1900.02512.76
5.3.280.1650.02512.67
5.3.270.1650.02112.78
5.3.260.1560.02512.68
5.3.250.0050.02512.62
5.3.240.1000.02012.63
5.3.230.1600.01912.64
5.3.220.1880.02312.64
5.3.210.1760.02212.69
5.3.200.1680.02512.61
5.3.190.1650.02012.64
5.3.180.1890.02512.61
5.3.170.1670.02012.69
5.3.160.1650.02212.65
5.3.150.1740.02212.69
5.3.140.1660.02312.68
5.3.130.1760.02012.68
5.3.120.1630.01812.69
5.3.110.1620.02312.65
5.3.100.1700.02012.50
5.3.90.1940.02112.33
5.3.80.1730.02312.43
5.3.70.1920.02412.41
5.3.60.1450.01812.33
5.3.50.1660.01612.35
5.3.40.1610.01912.35
5.3.30.1650.02512.43
5.3.20.1760.01512.21
5.3.10.1930.02412.16
5.3.00.1570.02412.20
5.2.170.2700.03311.24
5.2.160.2870.03011.31
5.2.150.2900.02711.11
5.2.140.2670.02711.37
5.2.130.2870.04011.04
5.2.120.2800.02711.09
5.2.110.2900.03011.04
5.2.100.2930.02311.11
5.2.90.2630.03011.06
5.2.80.2770.03011.20
5.2.70.2970.02711.02
5.2.60.2830.04011.13
5.2.50.2670.03011.02
5.2.40.2170.02711.09
5.2.30.2170.02711.05
5.2.20.1900.02710.93
5.2.10.2170.02710.77
5.2.00.2330.02310.72
5.1.60.2170.0279.99
5.1.50.2300.0239.91
5.1.40.2170.0239.91
5.1.30.2200.02710.50
5.1.20.2200.02310.30
5.1.10.2230.02010.05
5.1.00.2270.02310.05
5.0.50.1070.0208.55
5.0.40.1070.0208.55
5.0.30.1030.0308.55
5.0.20.1070.0178.55
5.0.10.1170.0278.55
5.0.00.1330.0378.55
4.4.90.1070.0138.55
4.4.80.1130.0138.55
4.4.70.1030.0208.55
4.4.60.1170.0108.55
4.4.50.1030.0178.55
4.4.40.1030.0278.55
4.4.30.1070.0178.55
4.4.20.1100.0138.55
4.4.10.1370.0138.55
4.4.00.1130.0208.55
4.3.110.1100.0138.55
4.3.100.1070.0108.55
4.3.90.1070.0238.55
4.3.80.1030.0278.55
4.3.70.1130.0178.55
4.3.60.1030.0138.55
4.3.50.1430.0138.55
4.3.40.1100.0208.55
4.3.30.0500.0178.55
4.3.20.0530.0208.55
4.3.10.0570.0108.55
4.3.00.0730.0238.55

preferences:
45.62 ms | 400 KiB | 5 Q