3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("DATA_PATH", "AAA"); class aaa { public static $b; public function __construct() { self::$b = DATA_PATH."BBB"; } } $t = new aaa(); echo $t::$b;

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.4.20.0100.01017.45
8.4.10.0090.01217.67
8.3.150.0130.00616.94
8.3.140.0080.00018.89
8.3.130.0000.01018.38
8.3.120.0030.01418.92
8.3.110.0060.00620.94
8.3.100.0060.00324.06
8.3.90.0040.01126.77
8.3.80.0060.00316.63
8.3.70.0110.00718.55
8.3.60.0100.01016.50
8.3.50.0110.00621.99
8.3.40.0070.01418.86
8.3.30.0100.00718.96
8.3.20.0040.00420.28
8.3.10.0080.00020.37
8.3.00.0040.00419.38
8.2.260.0130.00616.64
8.2.250.0000.00818.23
8.2.240.0060.00319.16
8.2.230.0050.00522.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0000.00916.50
8.2.190.0140.00416.63
8.2.180.0070.00716.32
8.2.170.0150.00322.96
8.2.160.0060.00820.76
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0080.00019.76
8.2.110.0060.00321.11
8.2.100.0080.00417.91
8.2.90.0000.00818.03
8.2.80.0080.00017.97
8.2.70.0080.00017.38
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00718.15
8.2.30.0000.00818.11
8.2.20.0000.00817.66
8.2.10.0000.00717.93
8.2.00.0060.00317.61
8.1.310.0090.00616.73
8.1.300.0070.00717.57
8.1.290.0090.00018.88
8.1.280.0060.00925.92
8.1.270.0030.00620.46
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00617.25
8.1.230.0080.00420.95
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0030.00717.47
8.1.190.0090.00017.35
8.1.180.0080.00018.10
8.1.170.0030.00620.38
8.1.160.0040.00422.01
8.1.150.0000.00718.88
8.1.140.0030.00417.35
8.1.130.0000.00817.78
8.1.120.0000.00717.46
8.1.110.0050.00317.35
8.1.100.0040.00417.45
8.1.90.0030.00417.40
8.1.80.0000.00717.46
8.1.70.0030.00317.40
8.1.60.0040.00417.45
8.1.50.0000.00817.41
8.1.40.0070.00017.46
8.1.30.0100.00017.61
8.1.20.0000.00717.53
8.1.10.0070.00017.59
8.1.00.0070.00017.42
8.0.300.0040.00419.68
8.0.290.0000.00716.75
8.0.280.0040.00418.49
8.0.270.0070.00017.25
8.0.260.0030.00317.23
8.0.250.0050.00216.96
8.0.240.0040.00416.81
8.0.230.0040.00317.01
8.0.220.0030.00316.88
8.0.210.0000.00816.86
8.0.200.0060.00016.85
8.0.190.0090.00317.01
8.0.180.0000.00716.84
8.0.170.0000.00916.80
8.0.160.0000.00716.83
8.0.150.0000.00716.78
8.0.140.0040.00416.83
8.0.130.0050.00013.27
8.0.120.0000.00716.71
8.0.110.0070.00016.73
8.0.100.0040.00416.87
8.0.90.0050.00316.93
8.0.80.0090.01216.92
8.0.70.0000.00716.71
8.0.60.0000.00716.92
8.0.50.0070.00016.73
8.0.30.0110.01016.96
8.0.20.0090.01217.40
8.0.10.0000.00716.83
8.0.00.0080.00916.81
7.4.330.0060.00015.02
7.4.320.0030.00316.57
7.4.300.0060.00016.42
7.4.290.0030.00316.57
7.4.280.0040.00416.50
7.4.270.0070.00016.45
7.4.260.0070.00016.57
7.4.250.0000.00716.56
7.4.240.0030.00516.55
7.4.230.0030.00316.58
7.4.220.0180.00016.63
7.4.210.0030.01216.65
7.4.200.0030.00316.47
7.4.160.0060.01316.48
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0100.00616.50
7.4.120.0040.01316.55
7.4.110.0070.01016.48
7.4.100.0180.00016.46
7.4.90.0150.00316.52
7.4.80.0100.01219.39
7.4.70.0060.01116.40
7.4.60.0090.00916.57
7.4.50.0000.00816.34
7.4.40.0070.01016.47
7.4.30.0090.00916.40
7.4.10.0100.01015.11
7.4.00.0050.01115.02
7.3.330.0030.00313.38
7.3.320.0030.00313.36
7.3.310.0030.00316.28
7.3.300.0000.00616.21
7.3.290.0110.00916.37
7.3.280.0110.00716.36
7.3.270.0150.00317.40
7.3.260.0130.00616.34
7.3.250.0120.00616.63
7.3.240.0120.00416.34
7.3.230.0000.01516.39
7.3.210.0070.01016.45
7.3.200.0090.00619.39
7.3.190.0060.01416.61
7.3.180.0120.00316.48
7.3.170.0130.01016.48
7.3.160.0080.00816.61
7.3.130.0090.00914.70
7.3.120.0090.00914.99
7.3.110.0100.00714.93
7.3.100.0090.00614.80
7.3.90.0080.00614.83
7.3.80.0050.00714.65
7.3.70.0050.00814.70
7.3.60.0050.00714.79
7.3.50.0050.00914.63
7.3.40.0080.00714.67
7.3.30.0070.00614.79
7.3.20.0060.00716.60
7.3.10.0070.00716.50
7.3.00.0070.00816.77
7.2.330.0150.00916.59
7.2.320.0100.01416.42
7.2.310.0130.00316.29
7.2.300.0070.01116.82
7.2.290.0110.00716.66
7.2.260.0070.01115.03
7.2.250.0080.01014.97
7.2.240.0060.01115.20
7.2.230.0040.01015.01
7.2.220.0090.00515.13
7.2.210.0070.00615.03
7.2.200.0090.00415.05
7.2.190.0060.00715.12
7.2.180.0040.01115.00
7.2.170.0040.01015.09
7.2.160.0120.00515.18
7.2.150.0050.01116.73
7.2.140.0060.00616.90
7.2.130.0070.00716.90
7.2.120.0030.01016.86
7.2.110.0060.00516.79
7.2.100.0030.01016.99
7.2.90.0030.01217.01
7.2.80.0070.00916.96
7.2.70.0060.00916.94
7.2.60.0080.00516.98
7.2.50.0070.00717.00
7.2.40.0050.00816.85
7.2.30.0070.00516.93
7.2.20.0100.00416.98
7.2.10.0050.00916.97
7.2.00.0060.00916.83
7.1.330.0050.01015.83
7.1.320.0050.00715.79
7.1.310.0080.00615.84
7.1.300.0050.00715.74
7.1.290.0030.00915.72
7.1.280.0050.00815.75
7.1.270.0050.00715.82
7.1.260.0050.00815.75
7.1.250.0060.00815.65
7.1.240.0040.00815.87
7.1.230.0060.00615.82
7.1.220.0070.00715.55
7.1.210.0060.00615.69
7.1.200.0070.00715.52
7.1.190.0070.01015.48
7.1.180.0100.00615.89
7.1.170.0070.00715.80
7.1.160.0110.00315.84
7.1.150.0060.00315.75
7.1.140.0100.00315.95
7.1.130.0050.00315.92
7.1.120.0070.00415.42
7.1.110.0070.00415.87
7.1.100.0030.01015.98
7.1.90.0080.00415.82
7.1.80.0090.00315.80
7.1.70.0040.00916.56
7.1.60.0090.01117.51
7.1.50.0070.00716.49
7.1.40.0030.01015.82
7.1.30.0050.00515.79
7.1.20.0080.00415.93
7.1.10.0060.00315.69
7.1.00.0050.04319.03
7.0.330.0070.00715.13
7.0.320.0040.00815.32
7.0.310.0070.00015.51
7.0.300.0040.00415.13
7.0.290.0070.00715.43
7.0.280.0000.00915.21
7.0.270.0000.00915.39
7.0.260.0060.00915.35
7.0.250.0040.01115.51
7.0.240.0030.00615.62
7.0.230.0030.00915.11
7.0.220.0040.00815.59
7.0.210.0040.00415.60
7.0.200.0070.00715.84
7.0.190.0070.00715.12
7.0.180.0040.01115.31
7.0.170.0060.00615.51
7.0.160.0070.00715.25
7.0.150.0080.00415.54
7.0.140.0050.04018.81
7.0.130.0030.00715.64
7.0.120.0050.00515.44
7.0.110.0060.00615.49
7.0.100.0250.04217.71
7.0.90.0120.04517.54
7.0.80.0050.04717.78
7.0.70.0030.03317.78
7.0.60.0070.04417.61
7.0.50.0120.04017.92
7.0.40.0090.04316.79
7.0.30.0040.03916.93
7.0.20.0080.02216.85
7.0.10.0100.04116.75
7.0.00.0060.03816.82
5.6.400.0100.00314.70
5.6.390.0030.01014.59
5.6.380.0070.00314.21
5.6.370.0030.00914.27
5.6.360.0070.00714.20
5.6.350.0030.01214.38
5.6.340.0060.00314.17
5.6.330.0070.00414.73
5.6.320.0040.00414.30
5.6.310.0100.00314.44
5.6.300.0030.01014.57
5.6.290.0120.00314.38
5.6.280.0030.04017.57
5.6.270.0040.01114.11
5.6.260.0110.00314.23
5.6.250.0040.04317.36
5.6.240.0050.05017.51
5.6.230.0060.04117.51
5.6.220.0050.04317.60
5.6.210.0080.02217.45
5.6.200.0050.02317.66
5.6.190.0100.03917.63
5.6.180.0050.02517.75
5.6.170.0080.03817.54
5.6.160.0030.02617.71
5.6.150.0070.03517.62
5.6.140.0050.04917.67
5.6.130.0060.02717.69
5.6.120.0100.01817.68
5.6.110.0120.03517.73
5.6.100.0030.02717.64
5.6.90.0100.03917.60
5.6.80.0090.02017.18
5.6.70.0050.02317.25
5.6.60.0110.01817.35
5.6.50.0070.04117.44
5.6.40.0110.03617.35
5.6.30.0070.04517.39
5.6.20.0080.02217.28
5.6.10.0020.03417.36
5.6.00.0030.02317.32
5.5.380.0030.04917.31
5.5.370.0090.04317.47
5.5.360.0050.02317.45
5.5.350.0060.02017.40
5.5.340.0130.02717.42
5.5.330.0080.04317.52
5.5.320.0070.04317.53
5.5.310.0050.04117.58
5.5.300.0020.03517.51
5.5.290.0050.04217.40
5.5.280.0070.01917.39
5.5.270.0050.03717.69
5.5.260.0050.02317.67
5.5.250.0090.02017.27
5.5.240.0060.04317.42
5.5.230.0050.04517.18
5.5.220.0020.02817.39
5.5.210.0130.04017.26
5.5.200.0050.04417.27
5.5.190.0020.04517.28
5.5.180.0080.03617.35
5.5.170.0100.00313.89
5.5.160.0070.01817.33
5.5.150.0020.02617.29
5.5.140.0020.02417.23
5.5.130.0030.02317.12
5.5.120.0030.02517.04
5.5.110.0030.02317.14
5.5.100.0030.02517.18
5.5.90.0070.02217.10
5.5.80.0050.02017.22
5.5.70.0020.02117.19
5.5.60.0130.01317.22
5.5.50.0100.02717.29
5.5.40.0070.02417.24
5.5.30.0070.02417.12
5.5.20.0050.02217.09
5.5.10.0080.02217.24
5.5.00.0090.01817.12
5.4.450.0050.04016.01
5.4.440.0060.03316.13
5.4.430.0020.02516.10
5.4.420.0080.03016.06
5.4.410.0010.02516.07
5.4.400.0050.02115.84
5.4.390.0070.04015.94
5.4.380.0070.03815.85
5.4.370.0060.03015.96
5.4.360.0070.03515.82
5.4.350.0060.01915.82
5.4.340.0030.02415.96
5.4.330.0030.00312.79
5.4.320.0070.02015.92
5.4.310.0040.02115.99
5.4.300.0100.01415.92
5.4.290.0000.02715.98
5.4.280.0050.02315.98
5.4.270.0080.01715.98
5.4.260.0040.02215.87
5.4.250.0020.02315.96
5.4.240.0070.01715.90
5.4.230.0070.01715.87
5.4.220.0070.01815.85
5.4.210.0050.02015.96
5.4.200.0040.02315.94
5.4.190.0030.02615.99
5.4.180.0050.02415.91
5.4.170.0040.02315.87
5.4.160.0080.01815.91
5.4.150.0030.02516.00
5.4.140.0000.02314.52
5.4.130.0030.01814.62
5.4.120.0060.01714.56
5.4.110.0020.02414.63
5.4.100.0030.02314.55
5.4.90.0030.02314.61
5.4.80.0060.01314.63
5.4.70.0050.01514.60
5.4.60.0030.02214.63
5.4.50.0070.01514.59
5.4.40.0020.02014.63
5.4.30.0060.01514.64
5.4.20.0010.01814.56
5.4.10.0070.01614.64
5.4.00.0010.01914.33
5.3.290.0000.04014.72
5.3.280.0000.04014.61
5.3.270.0070.03314.53
5.3.260.0000.04014.56
5.3.250.0000.04014.52
5.3.240.0000.03314.62
5.3.230.0000.04014.57
5.3.220.0030.03714.54
5.3.210.0030.04014.49
5.3.200.0030.03014.51
5.3.190.0030.03314.57
5.3.180.0070.03314.52
5.3.170.0070.03014.68
5.3.160.0070.02714.57
5.3.150.0000.04014.52
5.3.140.0030.03014.62
5.3.130.0070.02714.63
5.3.120.0070.03014.60
5.3.110.0030.03014.63
5.3.100.0030.03014.14
5.3.90.0070.02713.94
5.3.80.0070.03014.08
5.3.70.0030.03014.04
5.3.60.0030.03314.03
5.3.50.0030.03313.84
5.3.40.0070.03014.09
5.3.30.0070.02714.04
5.3.20.0100.02313.78
5.3.10.0000.03313.68
5.3.00.0070.02713.70
5.2.170.0030.02311.93
5.2.160.0030.02711.93
5.2.150.0070.02311.93
5.2.140.0000.02711.93
5.2.130.0000.03011.93
5.2.120.0030.02311.93
5.2.110.0000.02711.93
5.2.100.0030.02711.93
5.2.90.0030.02711.93
5.2.80.0070.04311.93
5.2.70.0070.04311.93
5.2.60.0100.05711.93
5.2.50.0030.06311.93
5.2.40.0100.03011.93
5.2.30.0030.05011.93
5.2.20.0030.05311.93
5.2.10.0130.02311.93
5.2.00.0000.03011.93
5.1.60.0070.04011.93
5.1.50.0000.02711.93
5.1.40.0030.05011.93
5.1.30.0030.02711.93
5.1.20.0000.02711.93
5.1.10.0070.04011.93
5.1.00.0030.05011.93
5.0.50.0100.04011.93
5.0.40.0070.02011.93
5.0.30.0000.03311.93
5.0.20.0030.02011.93
5.0.10.0030.03711.93
5.0.00.0000.06311.93
4.4.90.0030.01711.93
4.4.80.0070.02011.93
4.4.70.0000.01711.93
4.4.60.0030.01311.93
4.4.50.0030.03711.93
4.4.40.0000.03311.93
4.4.30.0000.03711.93
4.4.20.0070.02011.93
4.4.10.0000.03011.93
4.4.00.0000.05711.93
4.3.110.0030.01711.93
4.3.100.0070.01711.93
4.3.90.0000.03311.93
4.3.80.0070.04711.93
4.3.70.0000.01311.93
4.3.60.0130.00711.93
4.3.50.0070.02711.93
4.3.40.0030.04311.93
4.3.30.0070.02011.93
4.3.20.0000.02011.93
4.3.10.0000.02311.93
4.3.00.0000.02011.93

preferences:
82.01 ms | 403 KiB | 5 Q