3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function foo() { echo "foo\n"; } public function bar() { echo "bar\n"; $this->foo(); $this::foo(); self::foo(); } } $test = new Test; $test->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.40.0040.01118.59
8.3.30.0050.00920.19
8.3.20.0040.00418.46
8.3.10.0040.00421.06
8.3.00.0050.00319.56
8.2.170.0070.00722.96
8.2.160.0170.00320.45
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.01521.05
8.2.110.0050.00520.99
8.2.100.0120.00017.84
8.2.90.0000.00817.74
8.2.80.0000.00818.78
8.2.70.0000.00817.63
8.2.60.0060.00317.48
8.2.50.0070.00017.80
8.2.40.0060.00319.78
8.2.30.0040.00419.36
8.2.20.0040.00417.54
8.2.10.0070.00017.55
8.2.00.0050.00217.66
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0030.00719.20
8.1.230.0070.00420.89
8.1.220.0040.00418.57
8.1.210.0090.00018.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0050.00317.62
8.1.160.0040.00418.82
8.1.150.0000.00818.45
8.1.140.0000.00717.38
8.1.130.0030.00317.80
8.1.120.0080.00017.41
8.1.110.0050.00317.29
8.1.100.0040.00417.39
8.1.90.0000.00717.25
8.1.80.0080.00017.43
8.1.70.0000.00717.36
8.1.60.0040.00417.48
8.1.50.0080.00017.39
8.1.40.0000.00817.57
8.1.30.0050.00317.58
8.1.20.0040.00417.61
8.1.10.0000.00817.58
8.1.00.0040.00717.55
8.0.300.0040.00418.77
8.0.290.0060.00317.16
8.0.280.0070.00018.48
8.0.270.0040.00417.33
8.0.260.0030.00316.73
8.0.250.0000.00816.80
8.0.240.0000.00816.86
8.0.230.0070.00016.95
8.0.220.0030.00316.85
8.0.210.0000.00716.80
8.0.200.0060.00016.82
8.0.190.0000.00816.93
8.0.180.0050.00316.81
8.0.170.0050.00316.83
8.0.160.0040.00416.84
8.0.150.0040.00416.70
8.0.140.0040.00416.80
8.0.130.0000.00613.34
8.0.120.0040.00416.78
8.0.110.0030.00616.76
8.0.100.0060.00316.65
8.0.90.0000.00716.69
8.0.80.0030.01216.80
8.0.70.0050.00216.78
8.0.60.0040.00416.88
8.0.50.0000.00716.66
8.0.30.0070.01216.84
8.0.20.0070.01117.40
8.0.10.0070.00016.73
8.0.00.0130.00816.63
7.4.330.0050.00016.73
7.4.320.0050.00216.43
7.4.300.0030.00616.64
7.4.290.0000.00816.45
7.4.280.0040.00416.40
7.4.270.0060.00016.46
7.4.260.0060.00013.27
7.4.250.0060.00316.39
7.4.240.0070.00016.64
7.4.230.0070.00016.51
7.4.220.0100.01016.39
7.4.210.0080.00816.55
7.4.200.0000.00716.69
7.4.190.0070.00016.40
7.4.160.0100.01016.35
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0090.00916.55
7.4.120.0070.01016.41
7.4.110.0170.00616.53
7.4.100.0050.01316.46
7.4.90.0030.01416.43
7.4.80.0130.00519.39
7.4.70.0110.00716.41
7.4.60.0100.00716.25
7.4.50.0000.00716.38
7.4.40.0040.01122.77
7.4.30.0090.00916.61
7.4.00.0000.01414.82
7.3.330.0000.00513.20
7.3.320.0020.00213.21
7.3.310.0000.00716.09
7.3.300.0000.00616.11
7.3.290.0030.01016.20
7.3.280.0090.00816.23
7.3.270.0070.01017.40
7.3.260.0080.01318.24
7.3.250.0030.01316.26
7.3.240.0060.01216.25
7.3.230.0030.01316.44
7.3.210.0120.00316.14
7.3.200.0090.00919.39
7.3.190.0130.00916.43
7.3.180.0060.01016.24
7.3.170.0080.00816.42
7.3.160.0100.00616.30
7.3.120.0040.01214.38
7.2.330.0090.00916.66
7.2.320.0110.01116.68
7.2.310.0030.01416.60
7.2.300.0130.00416.73
7.2.290.0120.01216.72
7.2.00.0040.01119.34
7.1.100.0000.01518.08
7.1.70.0000.00917.42
7.1.60.0060.00617.42
7.1.50.0070.00717.42
7.1.40.0000.01417.42
7.1.30.0040.00717.42
7.1.20.0090.00317.42
7.1.10.0100.00017.42
7.1.00.0050.00317.42
7.0.200.0000.00717.42
7.0.190.0000.01017.42
7.0.180.0070.00017.42
7.0.170.0020.00517.42
7.0.160.0030.00717.42
7.0.150.0000.00817.42
7.0.140.0070.00317.42
7.0.130.0000.00817.42
7.0.120.0080.00017.42
7.0.110.0050.00317.42
7.0.100.0080.00017.42
7.0.90.0080.00017.42
7.0.80.0000.01017.42
7.0.70.0140.00317.42
7.0.60.0030.00517.42
7.0.50.0000.00817.42
7.0.40.0040.00417.42
7.0.30.0030.00717.42
7.0.20.0070.00317.42
7.0.10.0070.00417.42
7.0.00.0000.01017.42
5.6.300.0070.03620.82
5.6.290.0070.03920.80
5.6.280.0100.03620.86
5.6.270.0040.04620.90
5.6.260.0030.04420.98
5.6.250.0060.04221.07
5.6.240.0200.05720.96
5.6.230.0000.04720.84
5.6.220.0030.04121.04
5.6.210.0030.04921.14
5.6.200.0030.04720.82
5.6.190.0100.04020.85
5.6.180.0030.03921.00
5.6.170.0240.04720.71
5.6.160.0000.05520.88
5.6.150.0030.04520.93
5.6.140.0100.03920.73
5.6.130.0030.05120.93
5.6.120.0030.04020.76
5.6.110.0000.05621.04
5.6.100.0030.04720.82
5.6.90.0030.03920.71
5.6.80.0060.03820.36
5.6.70.0000.04620.42
5.6.60.0070.04020.28
5.6.50.0000.05620.41
5.6.40.0030.03920.35
5.6.30.0000.04420.21
5.6.20.0030.04220.40
5.6.10.0030.03720.10
5.6.00.0070.08020.15
5.5.380.0100.04817.54
5.5.370.0000.04917.67
5.5.360.0030.04217.64
5.5.350.0000.04617.43
5.5.340.0030.04417.71
5.5.330.0000.04118.10
5.5.320.0000.04317.85
5.5.310.0100.03617.70
5.5.300.0000.07218.06
5.5.290.0030.04518.04
5.5.280.0030.04518.18
5.5.270.0000.04418.13
5.5.260.0030.04418.09
5.5.250.0000.05517.85
5.5.240.0000.04417.42
5.5.230.0000.04817.43
5.5.220.0030.03717.43
5.5.210.0000.04817.48
5.5.200.0060.03917.42
5.5.190.0070.03717.42
5.5.180.0070.04817.42
5.5.160.0000.04817.42
5.5.150.0000.04917.42
5.5.140.0000.04417.42
5.5.130.0060.04117.42
5.5.120.0000.04417.42
5.5.110.0230.03017.52
5.5.100.0000.04517.42
5.5.90.0030.04417.42
5.5.80.0030.03917.42
5.5.70.0030.03617.42
5.5.60.0030.03917.42
5.5.50.0260.03917.42
5.5.40.0030.03917.42
5.5.30.0070.03317.42
5.5.20.0000.05017.42
5.5.10.0000.04417.42
5.5.00.0000.03917.42
5.4.450.0110.04219.35
5.4.440.0070.03819.31
5.4.430.0070.04019.41
5.4.420.0070.03619.47
5.4.410.0070.03919.31
5.4.400.0100.03319.15
5.4.390.0000.04118.98
5.4.380.0030.03919.09
5.4.370.0090.04119.06
5.4.360.0000.04718.92
5.4.350.0030.04019.25
5.4.340.0030.03719.00
5.4.320.0030.05118.94
5.4.310.0070.04019.19
5.4.300.0040.04218.96
5.4.290.0030.03918.98
5.4.280.0000.04719.02
5.4.270.0000.04019.23
5.4.260.0000.04418.96
5.4.250.0060.03918.97
5.4.240.0030.04819.20
5.4.230.0030.04318.93
5.4.220.0070.03719.12
5.4.210.0000.04218.87
5.4.200.0200.04619.05
5.4.190.0000.04019.07
5.4.180.0000.04519.07
5.4.170.0090.03118.97
5.4.160.0070.03418.91
5.4.150.0000.04518.96
5.4.140.0000.04517.42
5.4.130.0170.03717.42
5.4.120.0070.03317.42
5.4.110.0100.06317.42
5.4.100.0070.03017.42
5.4.90.0000.04817.42
5.4.80.0030.03817.42
5.4.70.0070.03617.42
5.4.60.0030.03417.42
5.4.50.0030.03617.42
5.4.40.0030.04917.42
5.4.30.0000.03717.42
5.4.20.0070.04017.42
5.4.10.0030.03617.42
5.4.00.0040.03517.42
5.3.290.0030.06517.42
5.3.280.0060.03517.42
5.3.270.0060.03617.42
5.3.260.0030.03917.42
5.3.250.0030.03617.42
5.3.240.0000.04717.42
5.3.230.0000.04217.42
5.3.220.0000.04117.42
5.3.210.0100.03417.42
5.3.200.0030.03717.42
5.3.190.0040.03517.42
5.3.180.0000.05217.42
5.3.170.0060.03517.42
5.3.160.0030.04517.42
5.3.150.0000.04317.42
5.3.140.0070.03617.42
5.3.130.0000.03917.42
5.3.120.0070.03917.42
5.3.110.0000.04217.42
5.3.100.0100.04517.42
5.3.90.0030.03617.42
5.3.80.0000.04017.42
5.3.70.0000.03717.42
5.3.60.0060.03517.42
5.3.50.0030.04117.42
5.3.40.0000.03717.42
5.3.30.0200.04217.42
5.3.20.0000.03817.42
5.3.10.0170.02717.42
5.3.00.0000.04117.42
5.2.170.0030.03517.42
5.2.160.0000.03017.42
5.2.150.0000.03017.42
5.2.140.0190.03817.42
5.2.130.0000.03017.42
5.2.120.0060.03217.42
5.2.110.0030.02917.42
5.2.100.0030.02617.42
5.2.90.0030.04917.42
5.2.80.0000.03417.42
5.2.70.0060.02617.42
5.2.60.0030.02917.42
5.2.50.0070.02317.42
5.2.40.0000.03117.42
5.2.30.0000.03417.42
5.2.20.0060.02517.42
5.2.10.0070.02617.42
5.2.00.0000.03117.42
5.1.60.0030.02517.42
5.1.50.0000.02717.42
5.1.40.0000.02817.42
5.1.30.0040.02517.42
5.1.20.0060.02117.42
5.1.10.0000.03017.42
5.1.00.0030.02617.42
5.0.50.0000.02617.42
5.0.40.0030.01717.42
5.0.30.0030.03017.42
5.0.20.0000.02217.42
5.0.10.0000.02017.42
5.0.00.0070.02717.42
4.4.90.0030.02317.42
4.4.80.0000.01917.42
4.4.70.0040.01817.42
4.4.60.0030.01517.42
4.4.50.0060.01217.42
4.4.40.0200.02717.42
4.4.30.0030.01517.42
4.4.20.0030.01517.42
4.4.10.0000.01617.42
4.4.00.0030.02317.42
4.3.110.0040.01417.42
4.3.100.0000.01717.42
4.3.90.0030.02117.42
4.3.80.0000.02517.42
4.3.70.0000.01717.42
4.3.60.0030.01317.42
4.3.50.0030.01917.42
4.3.40.0000.02717.42
4.3.30.0000.01817.42
4.3.20.0070.01017.42
4.3.10.0000.01917.42
4.3.00.0030.02217.42

preferences:
43.2 ms | 400 KiB | 5 Q