3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ololo { public function omg($a, $b, $c, $d, $e) { $a + $b + $c; } } xdebug_start_code_coverage(); $lang_id = $source = $lexemes_ids = $deadline_ts = $skip_lexem_ids = 1; $Obj = new Ololo(); $Obj->omg( $lang_id, $source, $lexemes_ids, $deadline_ts, $skip_lexem_ids ); $coverage = xdebug_get_code_coverage()[__FILE__]; xdebug_stop_code_coverage(); $lines = file(__FILE__); foreach ($lines as $idx => $l) { echo (isset($coverage[$idx + 1]) ? "\e[32m" : "\e[31m") . "$idx:$l"; } print_r($coverage);

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.10.0060.00319.63
8.3.140.0070.00717.13
8.3.130.0160.00018.35
8.3.120.0080.00020.58
8.3.110.0060.00320.94
8.3.100.0000.00918.42
8.3.90.0080.00026.77
8.3.80.0000.00816.38
8.3.70.0120.00618.39
8.3.60.0130.00716.50
8.3.50.0100.01117.32
8.3.40.0040.01118.64
8.3.30.0040.01118.64
8.3.20.0040.00420.34
8.3.10.0090.00021.88
8.3.00.0040.00423.61
8.2.250.0000.00818.30
8.2.240.0140.00017.08
8.2.230.0040.00422.58
8.2.220.0100.01024.06
8.2.210.0050.00326.77
8.2.200.0030.00618.37
8.2.190.0110.00718.29
8.2.180.0040.01125.92
8.2.170.0110.00318.96
8.2.160.0110.00822.96
8.2.150.0070.00025.66
8.2.140.0050.00524.66
8.2.130.0050.00226.16
8.2.120.0080.00019.70
8.2.110.0060.00320.44
8.2.100.0120.00017.79
8.2.90.0080.00019.14
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0030.00717.80
8.2.50.0040.00418.10
8.2.40.0040.00420.40
8.2.30.0040.00419.18
8.2.20.0000.00717.93
8.2.10.0000.00717.91
8.2.00.0030.00317.99
8.1.300.0030.00720.02
8.1.290.0040.00430.84
8.1.280.0160.00325.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0030.00617.35
8.1.230.0100.00020.39
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0070.00018.10
8.1.170.0120.00418.10
8.1.160.0000.00818.77
8.1.150.0040.00419.95
8.1.140.0030.00523.96
8.1.130.0000.00718.72
8.1.120.0040.00417.30
8.1.110.0040.00417.36
8.1.100.0040.00417.22
8.1.90.0040.00417.36
8.1.80.0000.00717.21
8.1.70.0000.00817.29
8.1.60.0000.00717.38
8.1.50.0040.00417.45
8.1.40.0070.00317.38
8.1.30.0040.00417.64
8.1.20.0040.00417.57
8.1.10.0000.00717.46
8.1.00.0080.00017.43
8.0.300.0030.00519.09
8.0.290.0060.00316.75
8.0.280.0040.00418.25
8.0.270.0000.00716.88
8.0.260.0060.00318.44
8.0.250.0030.00316.93
8.0.240.0000.00816.83
8.0.230.0040.00416.95
8.0.220.0050.00316.79
8.0.210.0030.00316.77
8.0.200.0040.00416.96
8.0.190.0000.00716.95
8.0.180.0000.00916.91
8.0.170.0040.00416.86
8.0.160.0000.00716.79
8.0.150.0000.00716.89
8.0.140.0070.00016.85
8.0.130.0000.00513.34
8.0.120.0000.00716.87
8.0.110.0030.00516.73
8.0.100.0040.00416.84
8.0.90.0040.00416.88
8.0.80.0060.00916.93
8.0.70.0040.00416.82
8.0.60.0050.00316.84
8.0.50.0070.00016.88
8.0.30.0100.00717.00
8.0.20.0130.00817.40
8.0.10.0000.00716.98
8.0.00.0070.01016.59
7.4.330.0030.00315.55
7.4.320.0030.00316.39
7.4.300.0030.00316.48
7.4.290.0060.00316.50
7.4.280.0040.00416.52
7.4.270.0070.00416.33
7.4.260.0000.00716.52
7.4.250.0000.00716.41
7.4.240.0000.00816.57
7.4.230.0000.00716.63
7.4.220.0000.00816.35
7.4.210.0090.01216.55
7.4.200.0050.00216.32
7.4.160.0060.01116.38
7.4.150.0150.00317.40
7.4.140.0100.01017.86
7.4.130.0120.00616.39
7.4.120.0120.00716.41
7.4.110.0100.01316.33
7.4.100.0210.00316.62
7.4.90.0060.01116.44
7.4.80.0040.01819.39
7.4.70.0060.01316.42
7.4.60.0160.00616.34
7.4.50.0130.00616.36
7.4.40.0100.00816.40
7.4.30.0110.01216.52
7.4.20.0160.00416.44
7.4.10.0130.00616.19
7.4.00.0090.00815.73
7.3.330.0060.00013.27
7.3.320.0020.00213.37
7.3.310.0000.00716.31
7.3.300.0070.00016.30
7.3.290.0090.00616.33
7.3.280.0070.01016.26
7.3.270.0100.00717.40
7.3.260.0090.00816.35
7.3.250.0120.00716.38
7.3.240.0070.00916.51
7.3.230.0080.00816.23
7.3.210.0080.00816.27
7.3.200.0070.01016.41
7.3.190.0070.01216.29
7.3.180.0050.01316.37
7.3.170.0110.00616.38
7.3.160.0090.00916.37
7.3.150.0110.00816.32
7.3.140.0080.00916.37
7.3.130.0110.00916.30
7.3.120.0080.00815.48
7.3.110.0080.00915.45
7.3.100.0080.01015.56
7.3.90.0090.00815.49
7.3.80.0080.01215.59
7.3.70.0060.01015.48
7.3.60.0080.00715.56
7.3.50.0080.00915.34
7.3.40.0030.01315.52
7.3.30.0080.00715.50
7.3.20.0060.01016.52
7.3.10.0080.00616.41
7.3.00.0100.00616.40
7.2.330.0100.01016.66
7.2.320.0110.00716.66
7.2.310.0090.00816.49
7.2.300.0090.00816.35
7.2.290.0100.00916.40
7.2.280.0100.01116.31
7.2.270.0070.01216.15
7.2.260.0110.00816.53
7.2.250.0060.01415.94
7.2.240.0060.01115.61
7.2.230.0060.01015.54
7.2.220.0100.00615.73
7.2.210.0090.00815.63
7.2.200.0080.00815.66
7.2.190.0100.00815.57
7.2.180.0040.01115.64
7.2.170.0060.01015.70
7.2.160.0070.01215.56
7.2.150.0060.01116.52
7.2.140.0100.00716.61
7.2.130.0090.00816.58
7.2.120.0120.00616.55
7.2.110.0090.00816.63
7.2.100.0060.01216.64
7.2.90.0070.01016.63
7.2.80.0060.01116.57
7.2.70.0070.00716.62
7.2.60.0080.00716.54
7.2.50.0100.00816.52
7.2.40.0100.00816.59
7.2.30.0080.01116.72
7.2.20.0060.01016.63
7.2.10.0130.00516.68
7.2.00.0120.00816.54
7.1.330.0090.00815.58
7.1.320.0090.00815.46
7.1.310.0050.01115.39
7.1.300.0090.00815.39
7.1.290.0070.00815.48
7.1.280.0090.00815.37
7.1.270.0110.00415.38
7.1.260.0070.01015.31
7.1.250.0090.00615.46
7.1.240.0130.00815.45
7.1.230.0080.01015.29
7.1.220.0060.01215.22
7.1.210.0080.01115.35
7.1.200.0070.00715.40
7.1.190.0080.00715.38
7.1.180.0060.01115.35
7.1.170.0130.00615.27
7.1.160.0210.00715.30
7.1.150.0090.00815.37
7.1.140.0080.00615.37
7.1.130.0080.01015.45
7.1.120.0140.00915.42
7.1.110.0120.00515.33
7.1.100.0090.00615.26
7.1.90.0090.00615.97
7.1.80.0060.00915.96
7.1.70.0060.00915.77
7.1.60.0090.00720.28
7.1.50.0070.00920.20
7.1.40.0120.01020.06
7.1.30.0170.00719.98
7.1.20.0090.00920.08
7.1.10.0080.00815.52
7.1.00.0070.01015.54
7.0.330.0070.00915.12
7.0.320.0110.00715.22
7.0.310.0070.00915.31
7.0.300.0090.00715.21
7.0.290.0060.01315.08
7.0.280.0070.00715.09
7.0.270.0080.00815.09
7.0.260.0090.00915.25
7.0.250.0100.00715.21
7.0.240.0060.00815.10
7.0.230.0050.00815.67
7.0.220.0070.00815.89
7.0.210.0070.00815.57
7.0.200.0090.00615.45
7.0.190.0040.01215.58
7.0.180.0060.00915.45
7.0.170.0120.00515.39
7.0.160.0050.01015.42
7.0.150.0070.00715.34
7.0.140.0090.00915.39
7.0.130.0040.01015.50
7.0.120.0060.00815.49
7.0.110.0080.01015.35
7.0.100.0070.01015.42
7.0.90.0080.00915.47
7.0.80.0060.00915.51
7.0.70.0070.00815.43
7.0.60.0090.00715.27
7.0.50.0090.00815.17
7.0.40.0090.00714.96
7.0.30.0100.01214.84
7.0.20.0080.00714.87
7.0.10.0120.00814.95
7.0.00.0060.01014.95
5.6.400.0060.01315.30
5.6.390.0050.01215.17
5.6.380.0070.01015.16
5.6.370.0060.01115.26
5.6.360.0090.00715.34
5.6.350.0100.00915.18
5.6.340.0100.00915.26
5.6.330.0090.00915.10
5.6.320.0080.00915.36
5.6.310.0070.01015.21
5.6.300.0070.01015.06
5.6.290.0120.00815.30
5.6.280.0110.00815.11
5.6.270.0080.01115.27
5.6.260.0080.01015.20
5.6.250.0090.01215.29
5.6.240.0080.01015.19
5.6.230.0100.00715.19
5.6.220.0070.01015.01
5.6.210.0080.01014.92
5.6.200.0100.00914.87
5.6.190.0090.00815.06
5.6.180.0170.01414.96
5.6.170.0100.01414.92
5.6.160.0090.01314.86
5.6.150.0100.01215.04
5.6.140.0110.01215.08
5.6.130.0080.01215.11
5.6.120.0100.01114.85
5.6.110.0100.01115.03
5.6.100.0090.01114.83
5.6.90.0100.00915.12
5.6.80.0140.01414.97
5.6.70.0100.01215.08
5.6.60.0120.00914.84
5.6.50.0100.00914.87
5.6.40.0050.01314.73
5.6.30.0070.01114.99
5.6.20.0100.01214.94
5.6.10.0080.00914.79
5.6.00.0060.01214.95
5.5.380.0150.01315.65
5.5.370.0150.01215.63
5.5.360.0110.01715.67
5.5.350.0140.01215.63
5.5.340.0140.01315.40
5.5.330.0190.01215.70
5.5.320.0320.01815.64
5.5.310.0130.02115.80
5.5.300.0160.01315.74
5.5.290.0190.01015.61
5.5.280.0210.01215.64
5.5.270.0200.00815.64
5.5.260.0190.00915.68
5.5.250.0190.02015.61
5.5.240.0170.02615.58
5.5.230.0280.01815.57
5.5.220.0120.01615.61
5.5.210.0130.01215.50
5.5.200.0130.01015.68
5.5.190.0120.01115.43
5.5.180.0170.00715.54
5.5.170.0150.01215.42
5.5.160.0120.01215.54
5.5.150.0160.01415.36
5.5.140.0160.01015.45
5.5.130.0120.01515.63
5.5.120.0090.01915.59
5.5.110.0120.01115.62
5.5.100.0130.01115.66
5.5.90.0180.00815.64
5.5.80.0170.01015.54
5.5.70.0140.01115.53
5.5.60.0120.01315.53
5.5.50.0170.01415.53
5.5.40.0120.01515.52
5.5.30.0160.01115.44
5.5.20.0140.01215.45
5.5.10.0130.01415.43
5.5.00.0140.01215.57
5.4.450.0070.01312.61
5.4.440.0110.00912.56
5.4.430.0130.00712.61
5.4.420.0140.00412.46
5.4.410.0250.01412.55
5.4.400.0180.00412.38
5.4.390.0150.00712.48
5.4.380.0200.01312.40
5.4.370.0110.00912.53
5.4.360.0140.00312.62
5.4.350.0150.00312.40
5.4.340.0150.00412.54
5.4.330.0110.00912.51
5.4.320.0080.00912.54
5.4.310.0110.00912.54
5.4.300.0140.00512.57
5.4.290.0120.01412.43
5.4.280.0150.01412.49
5.4.270.0130.00712.41
5.4.260.0080.01012.46
5.4.250.0110.01112.50
5.4.240.0110.00912.47
5.4.230.0090.00912.34
5.4.220.0110.01212.34
5.4.210.0150.00712.38
5.4.200.0130.00912.47
5.4.190.0150.01012.31
5.4.180.0180.01912.49
5.4.170.0090.01212.35
5.4.160.0100.01212.45
5.4.150.0090.01412.38
5.4.140.0090.01012.44
5.4.130.0090.01412.35
5.4.120.0080.01312.64
5.4.110.0150.00412.57
5.4.100.0090.01012.37
5.4.90.0150.00612.47
5.4.80.0130.00712.54
5.4.70.0150.00612.37
5.4.60.0090.00912.49
5.4.50.0090.01012.47
5.4.40.0180.00412.45
5.4.30.0060.01512.46
5.4.20.0120.00812.41
5.4.10.0090.01412.41
5.4.00.0100.01212.46
5.3.290.0110.00912.90
5.3.280.0090.01212.65
5.3.270.0120.00912.71
5.3.260.0140.00712.71
5.3.250.0130.00812.87
5.3.240.0150.00712.63
5.3.230.0110.00912.79
5.3.220.0110.00912.80
5.3.210.0100.00812.65
5.3.200.0090.01212.74
5.3.190.0080.01412.79
5.3.180.0150.00612.85
5.3.170.0100.01112.93
5.3.160.0090.01112.91
5.3.150.0080.01513.04
5.3.140.0130.00712.63
5.3.130.0090.01112.87
5.3.120.0110.01112.94
5.3.110.0100.01212.77
5.3.100.0140.00712.83
5.3.90.0080.01012.90
5.3.80.0090.00912.71
5.3.70.0280.01612.83
5.3.60.0120.01212.62
5.3.50.0120.01012.78
5.3.40.0160.00712.89
5.3.30.0160.00612.84
5.3.20.0160.00512.86
5.3.10.0170.00512.71
5.3.00.0120.00812.55
5.2.170.0130.00411.87
5.2.160.0120.00511.90
5.2.150.0100.00711.87
5.2.140.0090.00911.72
5.2.130.0100.00911.86
5.2.120.0150.00611.72
5.2.110.0060.01011.71
5.2.100.0100.00911.82
5.2.90.0070.01011.76
5.2.80.0080.01011.70
5.2.70.0100.00911.74
5.2.60.0080.01411.58
5.2.50.0130.00811.74
5.2.40.0100.01011.78
5.2.30.0160.00211.79
5.2.20.0060.01211.66
5.2.10.0110.00811.47
5.2.00.0100.01111.42
5.1.60.0130.00510.78
5.1.50.0100.00710.74
5.1.40.0110.00510.91
5.1.30.0080.00710.90
5.1.20.0140.00310.83
5.1.10.0110.00510.74
5.1.00.0110.00710.78
5.0.50.0060.00610.74
5.0.40.0030.00910.74
5.0.30.0050.00710.74
5.0.20.0090.00510.74
5.0.10.0060.00810.74
5.0.00.0080.00410.74
4.4.90.0060.00310.74
4.4.80.0080.00310.74
4.4.70.0050.00210.74
4.4.60.0040.00510.74
4.4.50.0050.00310.74
4.4.40.0070.00210.74
4.4.30.0030.00710.74
4.4.20.0080.00210.74
4.4.10.0060.00210.74
4.4.00.0000.00810.74
4.3.110.0020.00610.74
4.3.100.0040.00410.74
4.3.90.0030.00510.74
4.3.80.0060.00210.74
4.3.70.0050.00410.74
4.3.60.0080.00210.74
4.3.50.0040.00410.74
4.3.40.0030.00410.74
4.3.30.0040.00310.74
4.3.20.0080.00010.74
4.3.10.0040.00310.74
4.3.00.0040.00310.74

preferences:
40.99 ms | 403 KiB | 5 Q