3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Something; class X{} class Y{} class Z{} namespace Somewhere; use Something; class A { public $x; public function __construct() { $this->x = new Something\X(); } } $a = new A(); var_dump($a->x);

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.0180.00418.68
8.3.50.0060.01217.99
8.3.40.0130.01018.70
8.3.30.0150.00318.48
8.3.20.0080.00018.83
8.3.10.0100.00723.66
8.3.00.0040.00420.65
8.2.180.0070.00716.38
8.2.170.0030.01018.82
8.2.160.0110.00422.96
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.51
8.2.110.0070.00421.06
8.2.100.0110.00017.78
8.2.90.0060.00317.91
8.2.80.0000.01019.77
8.2.70.0040.00417.50
8.2.60.0000.00817.50
8.2.50.0040.00418.10
8.2.40.0040.00419.22
8.2.30.0020.00519.30
8.2.20.0000.00718.05
8.2.10.0040.00418.14
8.2.00.0080.00018.02
8.1.280.0120.00325.92
8.1.270.0090.00021.97
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0090.00022.34
8.1.230.0040.00820.98
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0000.00817.36
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0050.00218.59
8.1.160.0000.00718.75
8.1.150.0040.00418.80
8.1.140.0000.00722.13
8.1.130.0070.00019.98
8.1.120.0070.00017.41
8.1.110.0070.00017.38
8.1.100.0000.00717.29
8.1.90.0070.00017.43
8.1.80.0090.00017.41
8.1.70.0030.00317.28
8.1.60.0100.00017.57
8.1.50.0030.00517.54
8.1.40.0040.00417.35
8.1.30.0040.00417.58
8.1.20.0000.00817.61
8.1.10.0070.00017.59
8.1.00.0040.00717.50
8.0.300.0040.00419.86
8.0.290.0050.00516.75
8.0.280.0030.00518.23
8.0.270.0040.00416.82
8.0.260.0040.00418.41
8.0.250.0040.00416.88
8.0.240.0030.00516.84
8.0.230.0050.00216.91
8.0.220.0040.00416.79
8.0.210.0060.00316.81
8.0.200.0050.00216.75
8.0.190.0030.00316.78
8.0.180.0050.00316.83
8.0.170.0040.00416.77
8.0.160.0000.00716.77
8.0.150.0000.00716.73
8.0.140.0000.00716.80
8.0.130.0050.00013.24
8.0.120.0030.00716.69
8.0.110.0000.00816.77
8.0.100.0050.00216.79
8.0.90.0000.00816.86
8.0.80.0080.01316.82
8.0.70.0000.00716.69
8.0.60.0070.00016.84
8.0.50.0070.00016.93
8.0.30.0110.00717.19
8.0.20.0090.01117.40
8.0.10.0040.00416.80
8.0.00.0120.00516.54
7.4.330.0020.00215.55
7.4.320.0030.00616.42
7.4.300.0000.00616.60
7.4.290.0040.00416.49
7.4.280.0040.00416.52
7.4.270.0070.00316.40
7.4.260.0000.00716.60
7.4.250.0000.00716.41
7.4.240.0000.00716.46
7.4.230.0030.00316.62
7.4.220.0000.00816.60
7.4.210.0080.00616.52
7.4.200.0030.00316.68
7.4.160.0100.00816.63
7.4.140.0100.00817.86
7.4.130.0120.00916.55
7.4.120.0100.01016.50
7.4.110.0110.00816.45
7.4.100.0160.00616.40
7.4.90.0070.01016.43
7.4.80.0100.01019.39
7.4.70.0170.00016.65
7.4.60.0070.01116.45
7.4.50.0070.00716.52
7.4.40.0090.01316.36
7.4.10.0170.00314.83
7.4.00.0130.00314.85
7.3.330.0030.00313.36
7.3.320.0000.00513.32
7.3.310.0030.00616.40
7.3.300.0000.00716.37
7.3.290.0030.00316.27
7.3.280.0050.01216.36
7.3.260.0060.01116.51
7.3.240.0080.01016.36
7.3.230.0090.00716.45
7.3.210.0040.01216.34
7.3.200.0130.00316.32
7.3.190.0090.01016.26
7.3.180.0100.00616.23
7.3.170.0100.01016.45
7.3.160.0080.00816.26
7.3.130.0070.01314.65
7.3.120.0090.00914.79
7.3.110.0090.00914.75
7.3.100.0030.01014.68
7.3.90.0060.00614.94
7.3.80.0060.00315.17
7.3.70.0000.01014.73
7.3.60.0040.00814.80
7.3.50.0070.00714.82
7.3.40.0030.00714.73
7.3.30.0030.00714.69
7.3.20.0040.01216.82
7.3.10.0030.01016.59
7.3.00.0000.01416.55
7.2.330.0090.00916.57
7.2.320.0120.00916.39
7.2.310.0110.01116.87
7.2.300.0030.01316.52
7.2.290.0140.00616.36
7.2.260.0090.00415.04
7.2.250.0060.01215.25
7.2.240.0090.00614.77
7.2.230.0070.00715.07
7.2.220.0030.01315.32
7.2.210.0040.00814.98
7.2.200.0030.00615.14
7.2.190.0000.01414.87
7.2.180.0060.00914.54
7.2.170.0000.01214.90
7.2.160.0060.01114.76
7.2.150.0110.00416.53
7.2.140.0060.00617.01
7.2.130.0100.00316.79
7.2.120.0090.00616.57
7.2.110.0230.00315.69
7.2.100.0570.01015.83
7.2.90.0190.00815.66
7.2.80.0220.00815.75
7.2.70.0260.00815.99
7.2.60.0190.01215.99
7.2.50.0260.00515.87
7.2.40.0210.00315.82
7.2.30.0180.00915.86
7.2.20.0210.00515.93
7.2.10.0190.00815.92
7.2.00.0340.00816.04
7.1.330.0070.01015.91
7.1.320.0080.00815.65
7.1.310.0000.01515.82
7.1.300.0130.00015.76
7.1.290.0060.00615.84
7.1.280.0030.01015.79
7.1.270.0080.00815.75
7.1.260.0000.01115.45
7.1.250.0030.00615.65
7.1.240.0030.00615.72
7.1.230.0160.00614.59
7.1.220.0150.01114.75
7.1.210.0180.01114.83
7.1.200.0180.00814.82
7.1.190.0290.01014.76
7.1.180.0280.00914.63
7.1.170.0200.00714.69
7.1.160.0260.00614.77
7.1.150.0350.00514.71
7.1.140.0220.00514.59
7.1.130.0260.01014.54
7.1.120.0170.01114.86
7.1.110.0220.00914.86
7.1.100.0210.00614.76
7.1.90.0220.00914.73
7.1.80.0820.00714.73
7.1.70.0310.01014.85
7.1.60.0180.00614.92
7.1.50.0200.00614.80
7.1.40.0250.01014.90
7.1.30.0310.00914.58
7.1.20.0330.00814.83
7.1.10.0220.00314.90
7.1.00.0280.00514.84
7.0.330.0100.00315.23
7.0.320.0040.01115.38
7.0.310.0050.00815.08
7.0.300.0100.00315.17
7.0.290.0030.00515.10
7.0.280.0030.00815.30
7.0.270.0030.01015.37
7.0.260.0060.01015.37
7.0.250.0000.00815.41
7.0.240.0080.00315.43
7.0.230.0000.00815.48
7.0.220.0140.00015.43
7.0.210.0030.00715.37
7.0.200.0000.01215.45
7.0.190.0070.01015.41
7.0.180.0060.00615.17
7.0.170.0030.01215.53
7.0.160.0040.00815.29
7.0.150.0070.00715.41
7.0.140.0000.01415.11
7.0.130.0030.01015.53
7.0.120.0040.00415.56
7.0.110.0050.00315.38
7.0.100.0030.01015.46
7.0.90.0070.01015.41
7.0.80.0000.01315.40
7.0.70.0030.01015.33
7.0.60.0110.00315.14
7.0.50.0030.00915.34
7.0.40.0030.01013.09
7.0.30.0030.01013.14
7.0.20.0050.00813.45
7.0.10.0060.00313.54
7.0.00.0100.00713.16
5.6.400.0070.00714.38
5.6.390.0030.01014.60
5.6.380.0060.00814.32
5.6.370.0040.00814.66
5.6.360.0060.00614.52
5.6.350.0030.00714.54
5.6.340.0030.00914.42
5.6.330.0070.01114.21
5.6.320.0030.01214.41
5.6.310.0080.00514.56
5.6.300.0030.00714.25
5.6.290.0100.00314.37
5.6.280.0040.00814.42
5.6.270.0060.00614.34
5.6.260.0000.01514.54
5.6.250.0030.01014.15
5.6.240.0070.01014.32
5.6.230.0110.00314.50
5.6.220.0030.01014.21
5.6.210.0110.00414.40
5.6.200.0090.00614.38
5.6.190.0060.00914.31
5.6.180.0030.00614.52
5.6.170.0030.00914.02
5.6.160.0030.01014.40
5.6.150.0070.01014.21
5.6.140.0070.00714.65
5.6.130.0030.01014.39
5.6.120.0070.00714.18
5.6.110.0110.00314.46
5.6.100.0100.00014.43
5.6.90.0000.00814.55
5.6.80.0100.00014.15
5.6.70.0070.00414.21
5.6.60.0120.00314.32
5.6.50.0030.00914.21
5.6.40.0030.01014.26
5.6.30.0030.00714.19
5.6.20.0060.00614.09
5.6.10.0060.00614.35
5.6.00.0080.00314.40

preferences:
59.11 ms | 401 KiB | 5 Q