3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Bar {} } namespace Other { use Foo\Bar as FooBar; class Baz { function test($instance) { var_dump($instance instanceof FooBar); } } $other = new Baz; $other->test(new FooBar); }

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.0080.00818.29
8.3.50.0130.00721.98
8.3.40.0000.01518.70
8.3.30.0130.00618.75
8.3.20.0050.00320.21
8.3.10.0080.00021.81
8.3.00.0000.00719.05
8.2.180.0130.00918.17
8.2.170.0070.01422.96
8.2.160.0030.01020.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.65
8.2.110.0100.00721.99
8.2.100.0040.00818.09
8.2.90.0040.00419.14
8.2.80.0060.00317.97
8.2.70.0030.00617.34
8.2.60.0060.00317.80
8.2.50.0080.00018.07
8.2.40.0080.00019.94
8.2.30.0040.00417.90
8.2.20.0040.00417.62
8.2.10.0040.00418.05
8.2.00.0040.00417.48
8.1.280.0110.00625.92
8.1.270.0000.00724.66
8.1.260.0070.00726.35
8.1.250.0070.00028.09
8.1.240.0000.00922.19
8.1.230.0030.00719.15
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00617.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0080.00018.66
8.1.160.0030.00321.99
8.1.150.0040.00418.70
8.1.140.0070.00019.05
8.1.130.0040.00419.09
8.1.120.0000.00717.41
8.1.110.0040.00417.27
8.1.100.0000.00717.39
8.1.90.0000.00817.22
8.1.80.0040.00317.34
8.1.70.0050.00217.38
8.1.60.0000.00817.54
8.1.50.0080.00017.50
8.1.40.0040.00417.46
8.1.30.0040.00417.65
8.1.20.0090.00017.54
8.1.10.0050.00217.59
8.1.00.0070.00017.54
8.0.300.0000.00718.77
8.0.290.0040.00416.61
8.0.280.0000.00818.35
8.0.270.0000.00717.11
8.0.260.0040.00416.75
8.0.250.0030.00316.86
8.0.240.0030.00316.79
8.0.230.0030.00316.85
8.0.220.0040.00416.75
8.0.210.0070.00016.80
8.0.200.0080.00016.77
8.0.190.0080.00016.92
8.0.180.0070.00016.79
8.0.170.0000.00816.85
8.0.160.0050.00316.87
8.0.150.0030.00316.81
8.0.140.0040.00416.80
8.0.130.0000.00513.24
8.0.120.0000.00816.82
8.0.110.0030.00316.69
8.0.100.0000.00716.68
8.0.90.0050.00316.68
8.0.80.0030.01916.78
8.0.70.0040.00416.79
8.0.60.0040.00416.70
8.0.50.0000.00716.88
8.0.30.0070.00517.20
8.0.20.0060.01317.40
8.0.10.0000.00716.81
8.0.00.0100.00816.76
7.4.330.0000.00515.03
7.4.320.0030.00316.46
7.4.300.0060.00016.63
7.4.290.0030.00316.50
7.4.280.0000.00716.57
7.4.270.0000.00716.48
7.4.260.0070.00016.49
7.4.250.0080.00016.45
7.4.240.0030.00316.53
7.4.230.0000.00716.61
7.4.220.0080.01616.55
7.4.210.0110.00716.63
7.4.200.0000.00716.61
7.4.160.0060.00916.30
7.4.150.0150.00917.40
7.4.140.0110.00617.86
7.4.130.0140.00416.53
7.4.120.0150.00316.38
7.4.110.0150.00316.45
7.4.100.0030.02216.48
7.4.90.0140.00316.57
7.4.80.0130.00619.39
7.4.70.0060.01316.57
7.4.60.0070.01016.21
7.4.50.0000.00516.65
7.4.40.0080.00916.29
7.4.30.0100.00716.30
7.4.00.0000.01215.20
7.3.330.0000.00513.26
7.3.320.0000.00513.28
7.3.310.0060.00316.13
7.3.300.0030.00316.18
7.3.290.0100.00916.27
7.3.280.0100.00916.29
7.3.270.0210.00617.40
7.3.260.0190.00316.35
7.3.250.0090.01116.25
7.3.240.0090.01016.63
7.3.230.0130.00716.59
7.3.210.0100.00716.25
7.3.200.0030.01519.39
7.3.190.0150.00016.59
7.3.180.0090.00616.37
7.3.170.0130.00616.27
7.3.160.0030.01316.29
7.3.10.0060.00616.68
7.3.00.0030.01316.64
7.2.330.0150.00316.61
7.2.320.0070.01016.81
7.2.310.0140.00316.83
7.2.300.0130.00316.54
7.2.290.0060.01316.58
7.2.130.0070.00717.04
7.2.120.0090.00616.84
7.2.110.0080.00816.65
7.2.100.0120.00316.86
7.2.90.0000.00916.96
7.2.80.0000.01416.79
7.2.70.0090.00616.82
7.2.60.0070.00816.77
7.2.50.0100.00616.81
7.2.40.0000.00816.93
7.2.30.0080.00016.69
7.2.20.0000.00917.00
7.2.10.0030.00716.84
7.2.00.0050.00618.08
7.1.250.0060.00315.83
7.1.200.0000.01215.40
7.1.100.0060.00917.81
7.1.70.0060.01217.00
7.1.60.0100.01419.46
7.1.50.0040.01816.86
7.1.00.0070.07322.57
7.0.200.0000.01016.56
7.0.140.0030.03322.15
7.0.60.0100.05020.00
7.0.50.0100.07317.91
7.0.40.0170.07720.25
7.0.30.0300.05020.23
7.0.20.0230.05020.07
7.0.10.0070.07720.24
7.0.00.0000.09320.24
5.6.280.0030.07321.12
5.6.210.0030.07020.77
5.6.200.0070.08318.18
5.6.190.0130.06320.48
5.6.180.0470.07020.48
5.6.170.0270.06320.50
5.6.160.0100.04020.46
5.6.150.0100.04718.20
5.6.140.0070.05018.18
5.6.130.0170.07018.17
5.6.120.0170.06021.02
5.6.110.0070.08720.98
5.6.100.0070.06720.99
5.6.90.0100.08021.02
5.6.80.0070.07020.38
5.5.350.4200.03720.42
5.5.340.0100.07017.99
5.5.330.0130.07020.21
5.5.320.2270.04720.20
5.5.310.0330.07720.19
5.5.300.0100.03717.98
5.5.290.0000.04718.02
5.5.280.0100.05320.85
5.5.270.0070.08320.88
5.5.260.0130.07720.84
5.5.250.0100.08020.78
5.5.240.0070.07720.26
5.4.450.0200.05319.51
5.4.440.0600.05319.61
5.4.430.0230.06319.55
5.4.420.0300.03319.42
5.4.410.0070.05719.31
5.4.400.0070.05719.02
5.4.390.0170.06018.75
5.4.380.0170.07318.84
5.4.370.0170.05718.76
5.4.360.0270.04718.70
5.4.350.0100.07018.50
5.4.340.0200.07018.81
5.4.320.0170.05318.72
5.4.310.0270.04318.52
5.4.300.0170.05318.71
5.4.290.0270.05018.60
5.4.280.0200.05018.56
5.4.270.0230.05018.49
5.4.260.0100.06018.60
5.4.250.0230.05018.71
5.4.240.0200.05318.78
5.4.230.0230.05318.70
5.4.220.0270.04318.77
5.4.210.0270.04318.70
5.4.200.0130.05316.78
5.4.190.0230.04718.72
5.4.180.0200.05318.48
5.4.170.0170.05718.78
5.4.160.0300.04018.45
5.4.150.0170.05318.70
5.4.140.0200.05016.23
5.4.130.0200.05316.27
5.4.120.0130.05316.36
5.4.110.0200.04716.29
5.4.100.0170.05016.44
5.4.90.0130.05716.33
5.4.80.0170.06316.21
5.4.70.0170.06016.22
5.4.60.0200.06016.15
5.4.50.0200.05716.27
5.4.40.0270.04716.26
5.4.30.0300.04716.18
5.4.20.0200.05016.38
5.4.10.0100.05316.13
5.4.00.0230.04015.75
5.3.290.0170.06714.69
5.3.280.0300.04014.78
5.3.270.0200.07014.66
5.3.260.0170.05314.80
5.3.250.0230.04714.60
5.3.240.0130.06314.75
5.3.230.0130.05714.69
5.3.220.0170.05314.67
5.3.210.0230.05314.73
5.3.200.0270.04714.61
5.3.190.0170.05314.60
5.3.180.0070.06714.59
5.3.170.0270.04714.55
5.3.160.0270.05014.74
5.3.150.0270.04714.60
5.3.140.0330.05714.58
5.3.130.0130.08014.75
5.3.120.0170.05714.75
5.3.110.0130.06014.68
5.3.100.0270.04714.17
5.3.90.0130.06014.23
5.3.80.0170.05314.11
5.3.70.0130.05714.25
5.3.60.0170.05014.10
5.3.50.0200.07013.99
5.3.40.0130.05314.15
5.3.30.0130.05013.96
5.3.20.0170.05013.68
5.3.10.0200.05013.75
5.3.00.0130.05713.66
5.2.170.0170.04011.12
5.2.160.0100.04311.18
5.2.150.0130.04311.16
5.2.140.0130.04011.29
5.2.130.0170.04711.16
5.2.120.0070.04711.13
5.2.110.0170.03711.15
5.2.100.0100.04311.25
5.2.90.0200.03711.08
5.2.80.0200.04711.05
5.2.70.0000.05311.07
5.2.60.0130.04011.09
5.2.50.0070.05310.93
5.2.40.0000.05010.96
5.2.30.0030.04710.92
5.2.20.0100.04011.00
5.2.10.0100.04010.85
5.2.00.0170.03310.73
5.1.60.0130.03010.10
5.1.50.0130.03010.04
5.1.40.0200.03710.00
5.1.30.0070.04310.48
5.1.20.0100.04310.40
5.1.10.0130.03310.04
5.1.00.0100.04010.09
5.0.50.0100.0278.58
5.0.40.0070.0278.39
5.0.30.0070.0478.19
5.0.20.0030.0308.23
5.0.10.0070.0308.38
5.0.00.0100.0408.13
4.4.90.0070.0235.90
4.4.80.0030.0235.86
4.4.70.0000.0275.91
4.4.60.0070.0235.89
4.4.50.0070.0205.90
4.4.40.0070.0335.91
4.4.30.0070.0205.90
4.4.20.0130.0175.96
4.4.10.0000.0275.97
4.4.00.0070.0335.89
4.3.110.0030.0235.84
4.3.100.0030.0235.82
4.3.90.0030.0235.78
4.3.80.0030.0375.78
4.3.70.0030.0235.89
4.3.60.0100.0275.87
4.3.50.0070.0235.81
4.3.40.0100.0305.79
4.3.30.0030.0234.61
4.3.20.0100.0174.53
4.3.10.0030.0274.48
4.3.00.0030.02012.45

preferences:
47.11 ms | 401 KiB | 5 Q