3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const FIRST = 1; protected static $array = array( self::FIRST => 'first', 'second', 'third' ); public function __construct() { var_export(self::$array); } } $test = new Test();

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.0070.00718.53
8.3.30.0120.00418.84
8.3.20.0040.00420.04
8.3.10.0000.00722.14
8.3.00.0040.00420.57
8.2.170.0070.00722.96
8.2.160.0070.00720.53
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0060.00317.63
8.2.110.0030.00622.13
8.2.100.0060.00619.45
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0130.00017.50
8.2.60.0040.00417.80
8.2.50.0060.00618.07
8.2.40.0000.00818.22
8.2.30.0060.00418.03
8.2.20.0040.00417.64
8.2.10.0000.00819.33
8.2.00.0030.00517.52
8.1.270.0040.00421.87
8.1.260.0050.00326.35
8.1.250.0100.00328.09
8.1.240.0030.00623.80
8.1.230.0060.00619.04
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.01117.22
8.1.190.0090.00017.39
8.1.180.0050.00318.10
8.1.170.0000.00918.66
8.1.160.0070.00021.81
8.1.150.0070.00018.44
8.1.140.0040.00417.34
8.1.130.0070.00017.80
8.1.120.0000.00717.30
8.1.110.0050.00317.36
8.1.100.0070.00017.28
8.1.90.0000.00717.32
8.1.80.0030.00317.29
8.1.70.0000.00717.34
8.1.60.0090.00017.46
8.1.50.0040.00417.54
8.1.40.0050.00317.42
8.1.30.0060.00317.55
8.1.20.0080.00017.58
8.1.10.0070.00017.60
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0030.00317.05
8.0.280.0070.00018.31
8.0.270.0030.00317.31
8.0.260.0030.00316.75
8.0.250.0070.00016.85
8.0.240.0040.00416.72
8.0.230.0000.00716.86
8.0.220.0080.00016.77
8.0.210.0050.00316.85
8.0.200.0070.00016.89
8.0.190.0040.00416.89
8.0.180.0030.00316.80
8.0.170.0000.00716.89
8.0.160.0000.00716.82
8.0.150.0070.00016.80
8.0.140.0000.00716.77
8.0.130.0030.00313.20
8.0.120.0000.00716.61
8.0.110.0000.00816.77
8.0.100.0000.00716.59
8.0.90.0070.00016.82
8.0.80.0070.00716.77
8.0.70.0000.00816.84
8.0.60.0000.00716.88
8.0.50.0040.00416.76
8.0.30.0130.01017.08
8.0.20.0090.01217.40
8.0.10.0040.00416.89
8.0.00.0060.01316.89
7.4.330.0060.00015.00
7.4.320.0070.00016.55
7.4.300.0100.00016.51
7.4.290.0000.00716.57
7.4.280.0030.00316.39
7.4.270.0040.00416.48
7.4.260.0030.00316.40
7.4.250.0000.00816.47
7.4.240.0030.00416.50
7.4.230.0030.00316.39
7.4.220.0140.00316.45
7.4.210.0100.00516.53
7.4.200.0070.00016.38
7.4.190.0000.00716.58
7.4.160.0090.00616.45
7.4.150.0110.00717.40
7.4.140.0100.00717.86
7.4.130.0070.00916.63
7.4.120.0130.00516.47
7.4.110.0080.00816.37
7.4.100.0160.00316.28
7.4.90.0090.00816.39
7.4.80.0100.01319.39
7.4.70.0040.01216.27
7.4.60.0030.01216.40
7.4.50.0040.00416.46
7.4.40.0070.01022.77
7.4.30.0030.01716.21
7.4.10.0070.01114.85
7.4.00.0040.01314.96
7.3.330.0000.00513.11
7.3.320.0000.00513.30
7.3.310.0050.00216.28
7.3.300.0000.00716.13
7.3.290.0100.00316.38
7.3.280.0070.01116.34
7.3.270.0140.01017.40
7.3.260.0140.00316.27
7.3.250.0100.01016.26
7.3.240.0100.00616.20
7.3.230.0060.01016.46
7.3.210.0070.01016.48
7.3.200.0090.00619.39
7.3.190.0100.00616.47
7.3.180.0090.00616.55
7.3.170.0150.00616.39
7.3.160.0110.01116.30
7.3.130.0030.01614.63
7.3.120.0040.01314.63
7.3.110.0130.00714.80
7.3.100.0110.00414.80
7.3.90.0130.00614.70
7.3.80.0070.01014.78
7.3.70.0030.00714.91
7.3.60.0050.00514.81
7.3.50.0060.01014.66
7.3.40.0130.00015.00
7.3.30.0100.00614.76
7.3.20.0000.01216.61
7.3.10.0000.01616.60
7.3.00.0040.00416.49
7.2.330.0030.01516.25
7.2.320.0150.00716.53
7.2.310.0100.00716.18
7.2.300.0100.00716.38
7.2.290.0110.00516.57
7.2.260.0120.00614.71
7.2.250.0100.00715.13
7.2.240.0090.00615.09
7.2.230.0000.01314.77
7.2.220.0000.01514.63
7.2.210.0110.00715.20
7.2.200.0070.00415.11
7.2.190.0030.01314.93
7.2.180.0140.00414.71
7.2.170.0070.01015.11
7.2.160.0090.00314.96
7.2.150.0090.00616.63
7.2.140.0070.00716.59
7.2.130.0060.00316.86
7.2.120.0080.00816.65
7.2.110.0030.01016.57
7.2.100.0070.00716.86
7.2.90.0040.00816.61
7.2.80.0050.00516.73
7.2.70.0060.00616.79
7.2.60.0070.00716.90
7.2.50.0090.00616.98
7.2.40.0100.01016.81
7.2.30.0000.01316.97
7.2.20.0030.00916.78
7.2.10.0060.00616.65
7.2.00.0070.00416.62
7.1.330.0070.00415.60
7.1.320.0030.01315.74
7.1.310.0030.01015.72
7.1.300.0070.01115.88
7.1.290.0070.01015.36
7.1.280.0080.00815.75
7.1.270.0040.00715.87
7.1.260.0030.01315.55
7.1.250.0050.00515.89
7.1.240.0080.00815.64
7.1.230.0040.00815.43
7.1.220.0030.00715.39
7.1.210.0090.00615.36
7.1.200.0060.00315.61
7.1.190.0060.00315.52
7.1.180.0030.00915.59
7.1.170.0060.00615.45
7.1.160.0040.00415.80
7.1.150.0060.00315.42
7.1.140.0040.01115.55
7.1.130.0040.00815.51
7.1.120.0000.01115.64
7.1.110.0070.00315.75
7.1.100.0000.02115.59
7.1.90.0120.00615.84
7.1.80.0070.01415.82
7.1.70.0060.00816.40
7.1.60.0070.00817.82
7.1.50.0080.00916.28
7.1.40.0120.00315.78
7.1.30.0060.01015.63
7.1.20.0030.00515.60
7.1.10.0030.01015.68
7.1.00.0000.04919.01
7.0.330.0060.00315.34
7.0.320.0030.01015.28
7.0.310.0030.00915.41
7.0.300.0070.01015.30
7.0.290.0000.01015.42
7.0.280.0000.01215.38
7.0.270.0040.00415.43
7.0.260.0000.00815.11
7.0.250.0080.00415.26
7.0.240.0030.00615.48
7.0.230.0130.00315.49
7.0.220.0140.00315.13
7.0.210.0040.00815.02
7.0.200.0010.00816.00
7.0.190.0040.01115.29
7.0.180.0130.00015.09
7.0.170.0000.01415.29
7.0.160.0040.00815.55
7.0.150.0030.01015.33
7.0.140.0020.04418.62
7.0.130.0060.00615.45
7.0.120.0040.00415.09
7.0.110.0070.00315.18
7.0.100.0080.04317.64
7.0.90.0050.04317.59
7.0.80.0100.04117.69
7.0.70.0070.04517.72
7.0.60.0050.04717.53
7.0.50.0080.04117.88
7.0.40.0050.04416.73
7.0.30.0080.04516.70
7.0.20.0100.04216.73
7.0.10.0110.04216.75
7.0.00.0080.02816.65
5.6.400.0070.00714.09
5.6.390.0130.00014.55
5.6.380.0040.01114.27
5.6.370.0090.00614.22
5.6.360.0030.01614.63
5.6.350.0000.01314.29
5.6.340.0130.00314.61
5.6.330.0040.00414.18
5.6.320.0070.01014.23
5.6.310.0030.00914.23
5.6.300.0030.01014.63
5.6.290.0030.00914.37
5.6.280.0010.04317.52
5.6.270.0080.00314.35
5.6.260.0070.00714.32
5.6.250.0080.03717.64
5.6.240.0070.04217.27
5.6.230.0020.04817.41
5.6.220.0050.03217.47
5.6.210.0040.02917.46
5.6.200.0120.03017.69
5.6.190.0060.04317.80
5.6.180.0120.03517.66
5.6.170.0060.04817.66
5.6.160.0070.03817.67
5.6.150.0030.04017.63
5.6.140.0030.04717.70
5.6.130.0060.04617.72
5.6.120.0080.04117.78
5.6.110.0080.04917.70
5.6.100.0050.03117.56
5.6.90.0040.03017.64
5.6.80.0140.04017.36
5.6.70.0100.04017.23
5.6.60.0050.04517.22
5.6.50.0030.04217.21
5.6.40.0090.04017.26
5.6.30.0050.03517.22
5.6.20.0060.04517.37
5.6.10.0050.03017.37
5.6.00.0080.04017.32
5.5.380.0030.03517.32
5.5.370.0100.03517.31
5.5.360.0080.04217.10
5.5.350.0150.03717.47
5.5.340.0100.04117.33
5.5.330.0110.04117.51
5.5.320.0100.04317.58
5.5.310.0090.03017.51
5.5.300.0040.03717.37
5.5.290.0140.04117.45
5.5.280.0110.04217.57
5.5.270.0130.04117.65
5.5.260.0060.04317.50
5.5.250.0050.04517.07
5.5.240.0090.03117.23
5.5.230.0080.04317.14
5.5.220.0080.04017.08
5.5.210.0050.04517.33
5.5.200.0100.03316.91
5.5.190.0050.03117.19
5.5.180.0050.02617.13
5.5.170.0060.01014.10
5.5.160.0100.04017.26
5.5.150.0100.04017.29
5.5.140.0080.03517.18
5.5.130.0020.02716.88
5.5.120.0100.04217.12
5.5.110.0070.02717.08
5.5.100.0070.04617.27
5.5.90.0120.03817.17
5.5.80.0030.04517.10
5.5.70.0100.03617.20
5.5.60.0090.03717.19
5.5.50.0100.03917.21
5.5.40.0020.02717.00
5.5.30.0050.04917.03
5.5.20.0050.03217.22
5.5.10.0050.04617.16
5.5.00.0040.03117.11
5.4.450.0030.04115.19
5.4.440.0030.03015.09
5.4.430.0080.03815.13
5.4.420.0030.02615.17
5.4.410.0080.03815.00
5.4.400.0080.03714.87
5.4.390.0050.02514.90
5.4.380.0020.02615.03
5.4.370.0070.04214.81
5.4.360.0030.04515.01
5.4.350.0050.03715.18
5.4.340.0100.03714.94
5.4.330.0000.00810.91
5.4.320.0070.04115.04
5.4.310.0070.03215.12
5.4.300.0050.04114.80
5.4.290.0000.04014.87
5.4.280.0080.03515.07
5.4.270.0030.04214.68
5.4.260.0070.03915.13
5.4.250.0100.03614.98
5.4.240.0110.03614.87
5.4.230.0050.04314.86
5.4.220.0050.03614.69
5.4.210.0020.03314.93
5.4.200.0090.03414.79
5.4.190.0080.02314.95
5.4.180.0100.03815.03
5.4.170.0010.04514.94
5.4.160.0070.02314.92
5.4.150.0100.02314.68
5.4.140.0050.03313.64
5.4.130.0010.04313.50
5.4.120.0110.02013.62
5.4.110.0030.02613.59
5.4.100.0080.03613.44
5.4.90.0060.03813.45
5.4.80.0050.02513.60
5.4.70.0030.04013.60
5.4.60.0080.03013.70
5.4.50.0030.03913.62
5.4.40.0130.03013.51
5.4.30.0050.03813.66
5.4.20.0060.03813.71
5.4.10.0090.03413.53
5.4.00.0070.03013.16
5.3.290.0050.04012.66
5.3.280.0050.04012.44
5.3.270.0060.04812.67
5.3.260.0050.02212.49
5.3.250.0110.03012.58
5.3.240.0000.02912.51
5.3.230.0050.04312.47
5.3.220.0030.02612.46
5.3.210.0080.03412.51
5.3.200.0050.03612.43
5.3.190.0070.04012.46
5.3.180.0050.04012.62
5.3.170.0030.03812.53
5.3.160.0030.03012.64
5.3.150.0050.02712.43
5.3.140.0050.04012.52
5.3.130.0030.03312.55
5.3.120.0060.03512.54
5.3.110.0000.04712.48
5.3.100.0050.04012.31
5.3.90.0040.04012.31
5.3.80.0030.04112.13
5.3.70.0040.04112.25
5.3.60.0070.03512.13
5.3.50.0050.03512.25
5.3.40.0070.02012.18
5.3.30.0050.03212.09
5.3.20.0080.03912.09
5.3.10.0110.03012.00
5.3.00.0080.03112.03
5.2.170.0070.05711.94
5.2.160.0030.06711.94
5.2.150.0070.03011.94
5.2.140.0070.06011.94
5.2.130.0000.03311.94
5.2.120.0070.05311.94
5.2.110.0030.05311.94
5.2.100.0100.05711.94
5.2.90.0100.03011.94
5.2.80.0000.06311.94
5.2.70.0030.03711.94
5.2.60.0130.05011.94
5.2.50.0200.05311.94
5.2.40.0130.05311.94
5.2.30.0070.02711.94
5.2.20.0070.06011.94
5.2.10.0000.03311.94
5.2.00.0100.06011.94
5.1.60.0030.05011.94
5.1.50.0000.05311.94
5.1.40.0070.05011.94
5.1.30.0070.03311.94
5.1.20.0100.04011.94
5.1.10.0070.05011.94
5.1.00.0070.05311.94
5.0.50.0030.04311.94
5.0.40.0030.04711.94
5.0.30.0000.06011.94
5.0.20.0000.04711.94
5.0.10.0030.04011.94
5.0.00.0070.06711.94
4.4.90.0070.03011.94
4.4.80.0000.02011.94
4.4.70.0000.02311.94
4.4.60.0000.02011.94
4.4.50.0070.02711.94
4.4.40.0070.04711.94
4.4.30.0000.03711.94
4.4.20.0030.03711.94
4.4.10.0000.03711.94
4.4.00.0130.03011.94
4.3.110.0000.03311.94
4.3.100.0000.03711.94
4.3.90.0000.03311.94
4.3.80.0070.04711.94
4.3.70.0000.03711.94
4.3.60.0070.02311.94
4.3.50.0000.04011.94
4.3.40.0030.04711.94
4.3.30.0000.03711.94
4.3.20.0000.03711.94
4.3.10.0000.03711.94
4.3.00.0070.02711.94

preferences:
41.47 ms | 400 KiB | 5 Q