3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function foo() { if (isset($this)) { echo '$this is defined ('; echo get_class($this); echo ")\n"; } else { echo "\$this is not defined.\n"; } } } class B { function bar() { // Note: the next line will issue a warning if E_STRICT is enabled. A::foo(); } } $a = new A(); $a->foo(); // Note: the next line will issue a warning if E_STRICT is enabled. A::foo(); $b = new B(); $b->bar(); // Note: the next line will issue a warning if E_STRICT is enabled. B::bar();

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.00916.61
8.3.50.0090.01021.10
8.3.40.0100.01018.92
8.3.30.0090.00618.85
8.3.20.0070.00020.36
8.3.10.0040.00423.48
8.3.00.0000.01523.70
8.2.180.0100.00718.66
8.2.170.0100.01022.96
8.2.160.0100.00320.52
8.2.150.0030.00625.66
8.2.140.0050.00324.66
8.2.130.0050.00319.82
8.2.120.0040.00426.35
8.2.110.0070.00420.93
8.2.100.0060.00618.04
8.2.90.0050.00319.00
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0060.00322.19
8.2.30.0000.00719.44
8.2.20.0000.00817.82
8.2.10.0000.00718.00
8.2.00.0070.00017.93
8.1.280.0120.00925.92
8.1.270.0000.00923.96
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0130.01022.59
8.1.230.0070.00419.16
8.1.220.0040.00417.79
8.1.210.0040.00718.77
8.1.200.0030.00617.25
8.1.190.0050.00317.36
8.1.180.0000.00818.10
8.1.170.0060.00318.57
8.1.160.0000.00720.76
8.1.150.0050.00218.76
8.1.140.0000.00819.55
8.1.130.0030.00317.66
8.1.120.0070.00017.42
8.1.110.0040.00417.42
8.1.100.0040.00417.45
8.1.90.0000.00717.31
8.1.80.0050.00317.33
8.1.70.0000.00717.43
8.1.60.0080.00017.49
8.1.50.0050.00317.39
8.1.40.0040.00417.54
8.1.30.0030.00517.66
8.1.20.0030.00517.68
8.1.10.0000.00817.57
8.1.00.0040.00417.40
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0040.00418.48
8.0.270.0000.00717.33
8.0.260.0060.00017.32
8.0.250.0000.00717.05
8.0.240.0000.00717.00
8.0.230.0040.00416.98
8.0.220.0040.00416.86
8.0.210.0030.00316.77
8.0.200.0060.00017.01
8.0.190.0050.00316.95
8.0.180.0040.00716.86
8.0.170.0000.00716.83
8.0.160.0000.00716.99
8.0.150.0050.00316.93
8.0.140.0000.00816.77
8.0.130.0030.00313.28
8.0.120.0030.00516.82
8.0.110.0050.00216.84
8.0.100.0000.00717.02
8.0.90.0070.00016.71
8.0.80.0120.00616.89
8.0.70.0040.00416.86
8.0.60.0000.00716.81
8.0.50.0000.00716.89
8.0.30.0110.00517.14
8.0.20.0100.00917.40
8.0.10.0040.00416.92
8.0.00.0110.01016.83
7.4.330.0020.00216.77
7.4.320.0030.00316.54
7.4.300.0070.00016.62
7.4.290.0000.00716.63
7.4.280.0090.00316.56
7.4.270.0000.00716.51
7.4.260.0000.00716.64
7.4.250.0040.00416.55
7.4.240.0020.00516.53
7.4.230.0000.00716.41
7.4.220.0060.01216.43
7.4.210.0070.00716.57
7.4.200.0030.00316.62
7.4.160.0190.00016.27
7.4.150.0130.00617.40
7.4.140.0090.01117.86
7.4.130.0090.00916.40
7.4.120.0080.01016.67
7.4.110.0100.00716.59
7.4.100.0110.01116.56
7.4.90.0090.00816.53
7.4.80.0130.00719.39
7.4.70.0100.00716.51
7.4.60.0110.00616.50
7.4.50.0030.01316.67
7.4.40.0100.00616.49
7.4.30.0090.00916.52
7.4.00.0070.01114.96
7.3.330.0060.00013.32
7.3.320.0000.00513.15
7.3.310.0000.00716.16
7.3.300.0030.00316.30
7.3.290.0090.00616.29
7.3.280.0080.00916.30
7.3.270.0130.01217.40
7.3.260.0070.01416.40
7.3.240.0100.00716.40
7.3.230.0120.00616.39
7.3.210.0100.01316.39
7.3.200.0110.00719.39
7.3.190.0100.01116.28
7.3.180.0060.01016.30
7.3.170.0090.00616.45
7.3.160.0120.00916.55
7.3.120.0060.01314.73
7.3.110.0070.01014.48
7.3.100.0040.01214.95
7.3.90.0060.00914.58
7.3.80.0030.00614.77
7.3.70.0070.01014.48
7.3.60.0030.01014.70
7.3.50.0090.00314.81
7.3.40.0060.00614.77
7.3.30.0140.00314.78
7.3.20.0030.01416.52
7.3.10.0080.00416.44
7.3.00.0060.00616.59
7.2.330.0110.00616.80
7.2.320.0110.00716.80
7.2.310.0060.01616.71
7.2.300.0080.00816.66
7.2.290.0100.01116.70
7.2.250.0030.01315.08
7.2.240.0030.01615.06
7.2.230.0030.01115.22
7.2.220.0070.00715.00
7.2.210.0000.01214.92
7.2.200.0120.00315.13
7.2.190.0060.00614.82
7.2.180.0090.00915.01
7.2.170.0000.01214.96
7.2.160.0100.00714.78
7.2.150.0090.00316.83
7.2.140.0000.01516.81
7.2.130.0040.00916.82
7.2.120.0080.00516.80
7.2.110.0050.00616.92
7.2.100.0050.01016.85
7.2.90.0030.01116.91
7.2.80.0070.00916.89
7.2.70.0080.00816.98
7.2.60.0050.00716.95
7.2.50.0040.00816.63
7.2.40.0050.00816.98
7.2.30.0070.00616.89
7.2.20.0050.00817.05
7.2.10.0030.01016.91
7.2.00.0020.01117.61
7.1.330.0120.00315.44
7.1.320.0040.00815.73
7.1.310.0030.00715.75
7.1.300.0030.00615.83
7.1.290.0030.01015.54
7.1.280.0080.00415.67
7.1.270.0030.01015.54
7.1.260.0100.00715.88
7.1.250.0030.01015.79
7.1.240.0000.01015.65
7.1.230.0000.01415.67
7.1.220.0040.01115.75
7.1.210.0070.01015.84
7.1.200.0050.00715.69
7.1.190.0080.00815.73
7.1.180.0030.01115.72
7.1.170.0030.00615.56
7.1.160.0030.00915.62
7.1.150.0060.00815.50
7.1.140.0030.01315.85
7.1.130.0040.01115.77
7.1.120.0040.00715.79
7.1.110.0060.00615.72
7.1.100.0030.00716.86
7.1.90.0080.00615.82
7.1.80.0070.00715.61
7.1.70.0060.00716.42
7.1.60.0070.01017.57
7.1.50.0110.00516.12
7.1.40.0030.00715.80
7.1.30.0070.00715.73
7.1.20.0030.00815.70
7.1.10.0060.00615.85
7.1.00.0070.04019.14
7.0.330.0070.01015.34
7.0.320.0070.00715.32
7.0.310.0090.00615.39
7.0.300.0030.01015.31
7.0.290.0070.00415.30
7.0.280.0060.00615.39
7.0.270.0040.00715.42
7.0.260.0100.00315.50
7.0.250.0060.00315.55
7.0.240.0000.01215.34
7.0.230.0000.01115.39
7.0.220.0040.00715.52
7.0.210.0060.00615.36
7.0.200.0170.00316.05
7.0.190.0030.01215.14
7.0.180.0070.00415.43
7.0.170.0000.00915.29
7.0.160.0080.00515.30
7.0.150.0040.00415.36
7.0.140.0070.00715.23
7.0.130.0090.00315.13
7.0.120.0070.00715.22
7.0.110.0060.00615.22
7.0.100.0050.02817.55
7.0.90.0030.03617.52
7.0.80.0050.04617.78
7.0.70.0120.04017.65
7.0.60.0070.04317.59
7.0.50.0050.04417.91
7.0.40.0150.03216.78
7.0.30.0030.04716.87
7.0.20.0100.03716.76
7.0.10.0050.04516.84
7.0.00.0100.04216.71
5.6.400.0100.00714.21
5.6.390.0040.00714.20
5.6.380.0080.00414.37
5.6.370.0100.00714.75
5.6.360.0040.00714.46
5.6.350.0070.00714.35
5.6.340.0060.00614.60
5.6.330.0040.00814.45
5.6.320.0060.00614.55
5.6.310.0090.00014.27
5.6.300.0030.00914.14
5.6.290.0070.00714.64
5.6.280.0020.02217.80
5.6.270.0140.00714.24
5.6.260.0050.00514.02
5.6.250.0080.03017.53
5.6.240.0020.04917.44
5.6.230.0070.04417.37
5.6.220.0050.04517.47
5.6.210.0040.04917.54
5.6.200.0100.04017.83
5.6.190.0070.04417.59
5.6.180.0070.03317.77
5.6.170.0100.03317.60
5.6.160.0170.02817.74
5.6.150.0070.03217.67
5.6.140.0030.04917.81
5.6.130.0100.04317.66
5.6.120.0050.04717.78
5.6.110.0030.04917.76
5.6.100.0020.05317.63
5.6.90.0090.03617.76
5.6.80.0110.04017.19
5.6.70.0090.04417.31
5.6.60.0020.05217.20
5.6.50.0020.02517.31
5.6.40.0070.03117.14
5.6.30.0070.04117.28
5.6.20.0120.04017.21
5.6.10.0090.04317.23
5.6.00.0050.04317.38
5.5.380.0160.03717.22
5.5.370.0050.04917.25
5.5.360.0070.03817.41
5.5.350.0030.05017.20
5.5.340.0170.02517.39
5.5.330.0060.02517.68
5.5.320.0140.03717.54
5.5.310.0030.03517.50
5.5.300.0080.04317.63
5.5.290.0070.04417.61
5.5.280.0190.03417.52
5.5.270.0090.03517.20
5.5.260.0020.04717.51
5.5.250.0080.03517.42
5.5.240.0040.04317.25
5.5.230.0130.02017.27
5.5.220.0120.01717.18
5.5.210.0090.03917.25
5.5.200.0030.04317.05
5.5.190.0050.02217.10
5.5.180.0030.04017.15
5.5.170.0060.00914.28
5.5.160.0130.03617.17
5.5.150.0040.04417.17
5.5.140.0060.04517.34
5.5.130.0030.04816.99
5.5.120.0070.04517.23
5.5.110.0100.02817.24
5.5.100.0030.03117.17
5.5.90.0050.02617.16
5.5.80.0050.04117.10
5.5.70.0070.04317.25
5.5.60.0090.04217.11
5.5.50.0070.02517.13
5.5.40.0060.02316.98
5.5.30.0110.04017.07
5.5.20.0090.04117.17
5.5.10.0090.02617.04
5.5.00.0130.03716.88

preferences:
69.77 ms | 401 KiB | 5 Q