3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooException extends Exception { public function __toString() { return Exception::__toString(); } } class Foo { public function nonStatic() { return 'bar'; } } class Bar extends Foo { public function anotherNonStatic() { return Foo::nonStatic(); } } $a = new FooException(); var_dump($a->__toString()); $b = new Bar(); var_dump($b->anotherNonStatic());

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.0060.00918.25
8.3.50.0100.01021.20
8.3.40.0040.01118.71
8.3.30.0080.00520.21
8.3.20.0050.00318.57
8.3.10.0040.00420.92
8.3.00.0040.00419.66
8.2.180.0140.00716.75
8.2.170.0070.00722.96
8.2.160.0030.01020.57
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.02
8.2.110.0060.00320.45
8.2.100.0090.00317.84
8.2.90.0000.00719.08
8.2.80.0040.00419.39
8.2.70.0000.00917.63
8.2.60.0040.00418.16
8.2.50.0000.00918.07
8.2.40.0000.00919.95
8.2.30.0000.00719.33
8.2.20.0070.00017.58
8.2.10.0000.00817.75
8.2.00.0080.00017.69
8.1.280.0090.00625.92
8.1.270.0030.00523.99
8.1.260.0030.00626.35
8.1.250.0090.00028.09
8.1.240.0040.00422.50
8.1.230.0040.00820.67
8.1.220.0050.00318.77
8.1.210.0050.00319.04
8.1.200.0060.00317.35
8.1.190.0040.00417.54
8.1.180.0000.00818.10
8.1.170.0050.00318.54
8.1.160.0050.00318.88
8.1.150.0000.00718.55
8.1.140.0060.00317.38
8.1.130.0070.00017.82
8.1.120.0040.00417.53
8.1.110.0000.00717.32
8.1.100.0040.00417.47
8.1.90.0070.00017.45
8.1.80.0070.00017.37
8.1.70.0030.00317.45
8.1.60.0000.00817.48
8.1.50.0070.00017.43
8.1.40.0080.00017.55
8.1.30.0000.00817.66
8.1.20.0030.00617.63
8.1.10.0000.00717.52
8.1.00.0070.00417.43
8.0.300.0040.00420.04
8.0.290.0070.00017.18
8.0.280.0030.00318.36
8.0.270.0000.00717.14
8.0.260.0000.00618.41
8.0.250.0070.00017.02
8.0.240.0000.00717.02
8.0.230.0070.00016.84
8.0.220.0070.00016.81
8.0.210.0000.00716.88
8.0.200.0000.00616.83
8.0.190.0000.00716.82
8.0.180.0050.00316.88
8.0.170.0030.00616.93
8.0.160.0040.00416.88
8.0.150.0070.00016.96
8.0.140.0000.00716.75
8.0.130.0050.00213.32
8.0.120.0040.00416.75
8.0.110.0040.00416.89
8.0.100.0000.00716.70
8.0.90.0000.00716.92
8.0.80.0150.00616.84
8.0.70.0040.00416.83
8.0.60.0000.00716.78
8.0.50.0040.00416.84
8.0.30.0150.00616.88
8.0.20.0140.00817.40
8.0.10.0030.00516.97
8.0.00.0080.01116.75
7.4.330.0000.00516.76
7.4.320.0060.00016.52
7.4.300.0030.00316.46
7.4.290.0030.00516.59
7.4.280.0030.00316.61
7.4.270.0040.00416.66
7.4.260.0060.00013.23
7.4.250.0050.00316.58
7.4.240.0040.00416.62
7.4.230.0000.00716.68
7.4.220.0130.01016.54
7.4.210.0040.01116.65
7.4.200.0000.00716.43
7.4.190.0030.00316.55
7.4.160.0090.00616.47
7.4.150.0090.00917.40
7.4.140.0080.00817.86
7.4.130.0060.02116.54
7.4.120.0100.00916.60
7.4.110.0190.00016.46
7.4.100.0170.00016.52
7.4.90.0130.00516.39
7.4.80.0140.00919.39
7.4.70.0080.00816.40
7.4.60.0120.00316.51
7.4.50.0060.00016.30
7.4.40.0050.01322.77
7.4.30.0030.01616.51
7.4.00.0070.01014.89
7.3.330.0000.00613.03
7.3.320.0030.00313.11
7.3.310.0070.00016.25
7.3.300.0000.00716.10
7.3.290.0070.01116.28
7.3.280.0080.01116.23
7.3.270.0120.00617.40
7.3.260.0130.00918.24
7.3.250.0090.00716.37
7.3.240.0100.00716.08
7.3.230.0070.01016.42
7.3.210.0110.00616.22
7.3.200.0090.01319.39
7.3.190.0070.01016.30
7.3.180.0060.01316.52
7.3.170.0120.00916.43
7.3.160.0130.00616.14
7.3.120.0040.00814.77
7.3.10.0090.00416.58
7.3.00.0070.00316.22
7.2.330.0030.01416.70
7.2.320.0070.01616.47
7.2.310.0140.00616.59
7.2.300.0170.00816.69
7.2.290.0100.01316.51
7.2.130.0000.01116.72
7.2.120.0040.00816.59
7.2.110.0060.00316.41
7.2.100.0060.00616.84
7.2.90.0090.00616.55
7.2.80.0080.00416.86
7.2.70.0040.00716.84
7.2.60.0090.00516.79
7.2.50.0070.00716.84
7.2.40.0090.00316.65
7.2.30.0040.00716.80
7.2.20.0030.00716.94
7.2.10.0050.00516.80
7.2.00.0090.00618.17
7.1.250.0040.00415.54
7.1.200.0030.00615.84
7.1.100.0000.01117.62
7.1.70.0120.00218.73
7.1.60.0050.00818.73
7.1.50.0100.00718.73
7.1.40.0040.00718.73
7.1.30.0090.00618.73
7.1.20.0090.00918.73
7.1.10.0060.00618.73
7.1.00.0000.01118.73
7.0.200.0030.01018.73
7.0.190.0060.00618.73
7.0.180.0090.00418.73
7.0.170.0000.01218.73
7.0.160.0110.00018.73
7.0.150.0030.01018.73
7.0.140.0120.00718.73
7.0.130.0000.01318.73
7.0.120.0070.00718.73
7.0.110.0080.00818.73
7.0.100.0110.00418.73
7.0.90.0120.00418.73
7.0.80.0120.00318.73
7.0.70.0120.00418.73
7.0.60.0080.00818.73
7.0.50.0100.00718.73
7.0.40.0030.01018.73
7.0.30.0070.00718.73
7.0.20.0000.01018.73
7.0.10.0050.00518.73
7.0.00.0070.00418.73
5.6.300.0030.04420.91
5.6.290.0120.03820.86
5.6.280.0000.04720.93
5.6.270.0070.08721.04
5.6.260.0310.03120.97
5.6.250.0000.05020.79
5.6.240.0060.04520.80
5.6.230.0060.04120.81
5.6.220.0040.07520.96
5.6.210.0000.04620.96
5.6.200.0150.04320.93
5.6.190.0100.03820.84
5.6.180.0070.04520.91
5.6.170.0070.04420.82
5.6.160.0040.04520.94
5.6.150.0030.05020.83
5.6.140.0070.04720.83
5.6.130.0070.04420.82
5.6.120.0150.04320.90
5.6.110.0070.05420.83
5.6.100.0070.04721.01
5.6.90.0120.03620.76
5.6.80.0000.04520.31
5.6.70.0070.04620.24
5.6.60.0100.03420.40
5.6.50.0130.03620.18
5.6.40.0040.04520.10
5.6.30.0070.04020.25
5.6.20.0130.03720.14
5.6.10.0070.04020.18
5.6.00.0110.04520.20
5.5.380.0030.04318.73
5.5.370.0070.04118.73
5.5.360.0030.04518.73
5.5.350.0070.03918.73
5.5.340.0000.06118.73
5.5.330.0070.03818.73
5.5.320.0000.04218.73
5.5.310.0070.06318.73
5.5.300.0030.04618.73
5.5.290.0030.04118.73
5.5.280.0130.03518.73
5.5.270.0070.03718.73
5.5.260.0000.04418.73
5.5.250.0030.03918.73
5.5.240.0000.04118.73
5.5.230.0000.04518.73
5.5.220.0060.03718.73
5.5.210.0000.04118.73
5.5.200.0000.05818.73
5.5.190.0030.05918.73
5.5.180.0030.06718.73
5.5.160.0070.03718.73
5.5.150.0060.03618.73
5.5.140.0000.04318.73
5.5.130.0030.03918.73
5.5.120.0070.04318.73
5.5.110.0000.04018.73
5.5.100.0030.03818.73
5.5.90.0000.04518.73
5.5.80.0000.04218.73
5.5.70.0070.03618.73
5.5.60.0070.03318.73
5.5.50.0030.03918.73
5.5.40.0030.03718.73
5.5.30.0000.04318.73
5.5.20.0000.05318.73
5.5.10.0140.04118.73
5.5.00.0030.04118.73
5.4.450.0070.03919.54
5.4.440.0030.04719.31
5.4.430.0100.06819.48
5.4.420.0030.05019.53
5.4.410.0030.04219.40
5.4.400.0000.04318.89
5.4.390.0040.03919.15
5.4.380.0060.04719.00
5.4.370.0120.03018.94
5.4.360.0030.03819.10
5.4.350.0030.05819.11
5.4.340.0100.04018.94
5.4.320.0030.03919.21
5.4.310.0030.04118.91
5.4.300.0090.03419.10
5.4.290.0090.03118.92
5.4.280.0070.04318.97
5.4.270.0040.03718.93
5.4.260.0070.03319.05
5.4.250.0130.03219.16
5.4.240.0070.03419.05
5.4.230.0040.03918.93
5.4.220.0040.03919.20
5.4.210.0000.04019.22
5.4.200.0000.04419.04
5.4.190.0040.03618.97
5.4.180.0030.03719.22
5.4.170.0070.03719.19
5.4.160.0000.04719.14
5.4.150.0060.04119.11
5.4.140.0070.04618.73
5.4.130.0030.03418.73
5.4.120.0070.03018.73
5.4.110.0030.03918.73
5.4.100.0000.04618.73
5.4.90.0030.03518.73
5.4.80.0030.03418.73
5.4.70.0000.03818.73
5.4.60.0000.03718.73
5.4.50.0000.04018.73
5.4.40.0000.04118.73
5.4.30.0030.03418.73
5.4.20.0000.03918.73
5.4.10.0100.03318.73
5.4.00.0030.03318.73
5.3.290.0100.03218.73
5.3.280.0000.03918.73
5.3.270.0030.04618.73
5.3.260.0000.04418.73
5.3.250.0000.05018.73
5.3.240.0000.04218.73
5.3.230.0060.03218.73
5.3.220.0000.03818.73
5.3.210.0000.04018.73
5.3.200.0030.03918.73
5.3.190.0000.03818.73
5.3.180.0000.03818.73
5.3.170.0000.04318.73
5.3.160.0030.03618.73
5.3.150.0070.03318.73
5.3.140.0000.03918.73
5.3.130.0070.03718.73
5.3.120.0030.03618.73
5.3.110.0030.03618.73
5.3.100.0100.05018.73
5.3.90.0000.03818.73
5.3.80.0030.06118.73
5.3.70.0000.04118.73
5.3.60.0030.05418.73
5.3.50.0090.04118.73
5.3.40.0030.03818.73
5.3.30.0000.03718.73
5.3.20.0030.04418.73
5.3.10.0030.05018.73
5.3.00.0040.03618.73
5.2.170.0030.02818.73
5.2.160.0000.03018.73
5.2.150.0100.03518.73
5.2.140.0060.02918.73
5.2.130.0000.03018.73
5.2.120.0000.04018.73
5.2.110.0000.03218.73
5.2.100.0000.03418.73
5.2.90.0000.03318.73
5.2.80.0000.03018.73
5.2.70.0000.03318.73
5.2.60.0000.03418.73
5.2.50.0070.04618.73
5.2.40.0000.03218.73
5.2.30.0070.03718.73
5.2.20.0030.02918.73
5.2.10.0030.02918.73
5.2.00.0000.03118.73
5.1.60.0030.02318.73
5.1.50.0000.02818.73
5.1.40.0030.02718.73
5.1.30.0000.03018.73
5.1.20.0030.02518.73
5.1.10.0000.03018.73
5.1.00.0030.02818.73
5.0.50.0000.02418.73
5.0.40.0030.02018.73
5.0.30.0030.03318.73
5.0.20.0030.01718.73
5.0.10.0040.03618.73
5.0.00.0070.02918.73
4.4.90.0000.01618.73
4.4.80.0000.01718.73
4.4.70.0000.01818.73
4.4.60.0070.01118.73
4.4.50.0030.02518.73
4.4.40.0090.01818.73
4.4.30.0000.01718.73
4.4.20.0030.01418.73
4.4.10.0030.01318.73
4.4.00.0160.01918.73
4.3.110.0030.01318.73
4.3.100.0030.01718.73
4.3.90.0000.01618.73
4.3.80.0000.02718.73
4.3.70.0000.03118.73
4.3.60.0030.01618.73
4.3.50.0040.01518.73
4.3.40.0000.02518.73
4.3.30.0000.02218.73
4.3.20.0000.01918.73
4.3.10.0070.01118.73
4.3.00.0030.01618.73

preferences:
45.31 ms | 401 KiB | 5 Q