3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function foo() { if (isset($this)) { echo '$this ist definiert ('; echo get_class($this); echo ")\n"; } else { echo "\$this ist nicht definiert.\n"; } } } class B { function bar() { // Hinweis: die folgende Zeile führt zu einer Warnung, wenn // E_STRICT aktiviert ist A::foo(); } } $a = new A(); $a->foo(); // Hinweis: die folgende Zeile führt zu einer Warnung, wenn E_STRICT aktiviert ist A::foo(); $b = new B(); $b->bar(); // Hinweis: die folgende Zeile führt zu einer Warnung, wenn E_STRICT aktiviert ist 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.63
8.3.50.0100.00921.20
8.3.40.0100.01018.67
8.3.30.0070.01418.67
8.3.20.0140.00020.33
8.3.10.0050.00323.68
8.3.00.0110.00323.66
8.2.180.0140.00718.54
8.2.170.0090.00622.96
8.2.160.0140.00320.22
8.2.150.0080.00024.18
8.2.140.0130.00624.66
8.2.130.0050.00319.83
8.2.120.0060.00926.35
8.2.110.0060.00322.26
8.2.100.0070.00418.03
8.2.90.0000.00819.26
8.2.80.0040.00418.05
8.2.70.0030.00617.75
8.2.60.0060.00317.80
8.2.50.0030.00518.07
8.2.40.0000.00822.50
8.2.30.0040.00420.52
8.2.20.0040.00417.68
8.2.10.0000.00817.99
8.2.00.0000.00718.07
8.1.280.0120.00625.92
8.1.270.0050.00322.10
8.1.260.0060.00628.09
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0080.00420.78
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.13
8.1.180.0000.00918.10
8.1.170.0040.00418.46
8.1.160.0040.00420.64
8.1.150.0000.00718.91
8.1.140.0000.01019.45
8.1.130.0000.00719.02
8.1.120.0000.00717.32
8.1.110.0050.00317.48
8.1.100.0000.00717.43
8.1.90.0070.00017.32
8.1.80.0000.00817.33
8.1.70.0030.00317.34
8.1.60.0060.00317.54
8.1.50.0070.00317.35
8.1.40.0050.00317.45
8.1.30.0000.00817.59
8.1.20.0040.00417.61
8.1.10.0070.00017.53
8.1.00.0040.00417.52
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0070.00018.42
8.0.270.0030.00317.27
8.0.260.0070.00017.28
8.0.250.0000.00717.01
8.0.240.0000.00716.95
8.0.230.0000.00716.96
8.0.220.0070.00016.89
8.0.210.0040.00416.98
8.0.200.0030.00316.86
8.0.190.0060.00317.01
8.0.180.0030.00617.00
8.0.170.0030.00516.86
8.0.160.0040.00416.99
8.0.150.0000.00716.90
8.0.140.0050.00316.89
8.0.130.0000.00613.33
8.0.120.0000.00816.90
8.0.110.0050.00316.73
8.0.100.0070.00016.79
8.0.90.0030.00316.85
8.0.80.0120.00316.93
8.0.70.0050.00216.80
8.0.60.0000.00716.92
8.0.50.0040.00416.90
8.0.30.0070.01216.99
8.0.20.0070.01117.41
8.0.10.0070.00016.91
8.0.00.0120.00716.74
7.4.330.0000.00516.77
7.4.320.0000.00616.35
7.4.300.0060.00316.62
7.4.290.0030.00316.37
7.4.280.0000.00816.54
7.4.270.0030.00316.53
7.4.260.0030.00316.45
7.4.250.0080.00016.39
7.4.240.0020.00516.50
7.4.230.0000.00716.63
7.4.220.0090.00916.64
7.4.210.0070.00916.52
7.4.200.0040.00416.35
7.4.160.0160.00016.80
7.4.150.0080.00917.40
7.4.140.0070.01517.86
7.4.130.0090.01116.64
7.4.120.0130.01016.51
7.4.110.0130.00316.71
7.4.100.0120.00916.47
7.4.90.0090.00916.62
7.4.80.0110.01119.39
7.4.70.0070.01016.59
7.4.60.0110.00616.69
7.4.50.0060.00616.48
7.4.40.0070.01016.57
7.4.30.0100.01316.62
7.4.00.0100.00315.19
7.3.330.0060.00013.28
7.3.320.0000.00513.37
7.3.310.0070.00016.27
7.3.300.0070.00016.33
7.3.290.0030.00316.31
7.3.280.0070.01016.24
7.3.270.0180.00317.40
7.3.260.0110.00716.27
7.3.250.0100.00616.25
7.3.240.0060.01416.39
7.3.230.0120.00416.39
7.3.210.0120.00916.51
7.3.200.0040.01219.39
7.3.190.0070.01416.31
7.3.180.0070.01016.52
7.3.170.0160.00416.43
7.3.160.0090.00816.47
7.2.330.0070.01116.59
7.2.320.0140.00716.28
7.2.310.0110.00616.36
7.2.300.0060.01216.73
7.2.290.0110.00516.63
7.2.60.0130.00316.92
7.2.00.0030.01019.25
7.1.200.0110.00015.77
7.1.100.0040.01118.04
7.1.70.0040.00417.12
7.1.60.0140.01119.20
7.1.50.0100.01016.77
7.1.00.0100.06722.40
7.0.200.0060.00614.75
7.0.60.0100.02321.60
7.0.50.0070.06017.88
7.0.40.0030.05320.09
7.0.30.0370.04020.19
7.0.20.0270.07320.33
7.0.10.0100.03720.08
7.0.00.0030.04020.29
5.6.210.0100.08020.57
5.6.200.0130.08018.14
5.6.190.0070.07720.77
5.6.180.0400.06320.64
5.6.170.0300.08320.41
5.6.160.0130.04720.51
5.6.150.0200.07018.19
5.6.140.0100.07318.29
5.6.130.0070.05018.19
5.6.120.0200.05321.13
5.6.110.0100.04020.89
5.6.100.0070.08320.98
5.6.90.0070.07021.13
5.6.80.0170.07320.40
5.5.350.0300.07320.43
5.5.340.0070.05318.07
5.5.330.0230.06720.38
5.5.320.0600.07020.27
5.5.310.0230.04320.51
5.5.300.0100.07317.97
5.5.290.0030.08717.95
5.5.280.0030.06320.73
5.5.270.0100.05020.74
5.5.260.0100.05020.89
5.5.250.0100.08320.45
5.5.240.0100.04020.37

preferences:
41.45 ms | 401 KiB | 5 Q