3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function setUp() { $tests = array( 'printHello' => array(), 'printWorld' => array(), 'printName' => array('Bob'), ); foreach( $tests as $fn => $params) call_user_func_array( array( $this, $fn), $params); } public function printHello() { echo "Hello, "; } public function printWorld() { echo "World!"; } public function printName($name=false) { echo $name; } } $o = new Test; $o->setUp();

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.130.0080.00018.41
8.3.120.0040.00420.66
8.3.110.0060.00318.18
8.3.100.0040.00416.54
8.3.90.0070.00716.63
8.3.80.0090.00018.43
8.3.70.0150.00616.50
8.3.60.0070.00716.60
8.3.50.0110.01017.31
8.3.40.0070.01418.84
8.3.30.0100.00318.67
8.3.20.0000.00818.90
8.3.10.0080.00020.69
8.3.00.0080.00019.38
8.2.250.0160.00018.32
8.2.240.0060.01018.88
8.2.230.0030.00720.94
8.2.220.0070.00324.06
8.2.210.0030.01326.77
8.2.200.0060.00316.38
8.2.190.0140.00316.58
8.2.180.0120.00318.42
8.2.170.0040.01122.96
8.2.160.0070.00719.36
8.2.150.0070.01124.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00819.36
8.2.110.0060.00322.18
8.2.100.0070.00418.09
8.2.90.0000.00817.75
8.2.80.0110.00418.65
8.2.70.0080.00017.63
8.2.60.0070.00017.63
8.2.50.0080.00018.04
8.2.40.0030.00619.66
8.2.30.0000.00718.12
8.2.20.0000.00717.63
8.2.10.0050.00217.80
8.2.00.0070.00317.79
8.1.300.0060.00318.00
8.1.290.0060.00318.88
8.1.280.0070.01125.92
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00319.27
8.1.230.0000.01222.66
8.1.220.0040.00418.49
8.1.210.0000.00818.77
8.1.200.0050.00317.35
8.1.190.0080.00017.23
8.1.180.0080.00318.10
8.1.170.0040.00417.62
8.1.160.0080.00018.93
8.1.150.0000.00718.58
8.1.140.0030.00517.46
8.1.130.0000.00717.86
8.1.120.0040.00417.42
8.1.110.0040.00417.44
8.1.100.0030.00317.39
8.1.90.0020.00517.45
8.1.80.0080.00017.36
8.1.70.0030.00317.38
8.1.60.0000.00817.58
8.1.50.0040.00417.44
8.1.40.0040.00417.34
8.1.30.0000.00717.67
8.1.20.0040.00417.55
8.1.10.0040.00417.45
8.1.00.0040.00417.37
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0040.00418.43
8.0.270.0000.00817.17
8.0.260.0000.00816.82
8.0.250.0000.00816.85
8.0.240.0080.00016.98
8.0.230.0030.00316.83
8.0.220.0000.00716.82
8.0.210.0000.00616.89
8.0.200.0060.00016.99
8.0.190.0040.00416.95
8.0.180.0070.00016.94
8.0.170.0000.00716.93
8.0.160.0030.00316.93
8.0.150.0000.00916.88
8.0.140.0090.00016.80
8.0.130.0060.00013.35
8.0.120.0040.00416.83
8.0.110.0000.00716.69
8.0.100.0000.00716.91
8.0.90.0080.00016.83
8.0.80.0040.01116.88
8.0.70.0030.00516.89
8.0.60.0030.00516.77
8.0.50.0040.00416.68
8.0.30.0160.00816.95
8.0.20.0100.00717.18
8.0.10.0000.00716.86
8.0.00.0080.01416.69
7.4.330.0020.00212.96
7.4.320.0030.00316.40
7.4.300.0060.00016.45
7.4.290.0030.00316.48
7.4.280.0050.00216.57
7.4.270.0030.00516.43
7.4.260.0000.00613.21
7.4.250.0040.00416.38
7.4.240.0000.00816.48
7.4.230.0070.00016.57
7.4.220.0060.01516.55
7.4.210.0060.00916.57
7.4.200.0040.00416.54
7.4.190.0000.00716.69
7.4.160.0080.00816.26
7.4.150.0080.01016.55
7.4.140.0080.01316.44
7.4.130.0070.01316.48
7.4.120.0050.01216.45
7.4.110.0090.01016.56
7.4.100.0060.01216.47
7.4.90.0100.02016.50
7.4.80.0220.00019.39
7.4.70.0070.01016.55
7.4.60.0110.00816.56
7.4.50.0020.00216.42
7.4.40.0030.01016.23
7.4.30.0040.01216.72
7.4.00.0050.01115.05
7.3.330.0030.00313.25
7.3.320.0030.00313.30
7.3.310.0000.00716.12
7.3.300.0040.00416.26
7.3.290.0060.01116.32
7.3.280.0120.00616.29
7.3.270.0100.01316.70
7.3.260.0100.00716.23
7.3.250.0170.00716.39
7.3.240.0140.00416.63
7.3.230.0110.00616.43
7.3.210.0130.00416.49
7.3.200.0030.01316.30
7.3.190.0170.00816.26
7.3.180.0130.00316.66
7.3.170.0070.01416.21
7.3.160.0140.00516.53
7.3.120.0080.01014.85
7.3.110.0060.01114.83
7.3.100.0060.00914.73
7.3.90.0060.01014.81
7.3.80.0090.00714.75
7.3.70.0060.00814.77
7.3.60.0060.00814.77
7.3.50.0080.00814.76
7.3.40.0070.00614.75
7.3.30.0040.00914.71
7.3.20.0040.00916.66
7.3.10.0050.00816.61
7.3.00.0080.00616.65
7.2.330.0160.00316.78
7.2.320.0060.01216.48
7.2.310.0120.01216.77
7.2.300.0040.01516.61
7.2.290.0070.01116.37
7.2.250.0070.01315.17
7.2.240.0070.00915.20
7.2.230.0050.00915.04
7.2.220.0060.00915.03
7.2.210.0090.00715.13
7.2.200.0040.00815.04
7.2.190.0050.00915.03
7.2.180.0080.00615.05
7.2.170.0050.01015.01
7.2.160.0050.01115.06
7.2.150.0060.00917.03
7.2.140.0060.00816.86
7.2.130.0070.00816.98
7.2.120.0040.00816.76
7.2.110.0070.00917.00
7.2.100.0080.00616.89
7.2.90.0040.00916.96
7.2.80.0020.01217.04
7.2.70.0050.00816.82
7.2.60.0040.01016.96
7.2.50.0060.00716.83
7.2.40.0080.00716.96
7.2.30.0070.01016.96
7.2.20.0030.01116.92
7.2.10.0050.00916.86
7.2.00.0050.00917.46
7.1.330.0070.00715.85
7.1.320.0050.00715.74
7.1.310.0080.00715.69
7.1.300.0050.00815.80
7.1.290.0050.01015.69
7.1.280.0090.00415.76
7.1.270.0050.00815.73
7.1.260.0070.00715.76
7.1.250.0030.00915.78
7.1.240.0030.01015.49
7.1.230.0000.00815.67
7.1.220.0060.00815.86
7.1.210.0040.01115.77
7.1.200.0080.00315.92
7.1.190.0040.01115.81
7.1.180.0000.00815.59
7.1.170.0050.00515.70
7.1.160.0070.00715.59
7.1.150.0030.01015.79
7.1.140.0000.01415.77
7.1.130.0030.01015.69
7.1.120.0060.00615.46
7.1.110.0090.01215.79
7.1.100.0050.00917.05
7.1.90.0040.00715.69
7.1.80.0000.01515.94
7.1.70.0050.00616.44
7.1.60.0090.00917.60
7.1.50.0090.00916.27
7.1.40.0080.00615.79
7.1.30.0030.01015.63
7.1.20.0000.00815.51
7.1.10.0060.00915.77
7.1.00.0030.03719.10
7.0.330.0050.00315.36
7.0.320.0060.00615.42
7.0.310.0070.00715.40
7.0.300.0100.00415.38
7.0.290.0030.00715.30
7.0.280.0030.00915.33
7.0.270.0030.01015.42
7.0.260.0030.00915.47
7.0.250.0030.00615.25
7.0.240.0060.00615.16
7.0.230.0100.00315.61
7.0.220.0060.00615.37
7.0.210.0000.01115.41
7.0.200.0120.01014.91
7.0.190.0070.00715.19
7.0.180.0070.00715.49
7.0.170.0030.01015.45
7.0.160.0040.01115.48
7.0.150.0060.01015.14
7.0.140.0020.04318.61
7.0.130.0040.00415.45
7.0.120.0050.02918.71
7.0.110.0070.00715.41
7.0.100.0040.00815.30
7.0.90.0030.00915.54
7.0.80.0110.00015.54
7.0.70.0090.00315.29
7.0.60.0150.04217.68
7.0.50.0140.03616.56
7.0.40.0050.03416.87
7.0.30.0040.02716.78
7.0.20.0130.04316.89
7.0.10.0030.05016.94
7.0.00.0140.02016.78
5.6.400.0090.00314.12
5.6.390.0030.01314.38
5.6.380.0060.00814.63
5.6.370.0000.00914.39
5.6.360.0100.00714.48
5.6.350.0070.00314.24
5.6.340.0120.00314.20
5.6.330.0030.01214.00
5.6.320.0030.00714.27
5.6.310.0060.00614.55
5.6.300.0030.01214.55
5.6.290.0060.01014.15
5.6.280.0090.03417.63
5.6.270.0070.00714.26
5.6.260.0030.00814.38
5.6.250.0040.00414.18
5.6.240.0080.00414.09
5.6.230.0070.00714.25
5.6.220.0040.00814.20
5.6.210.0100.04117.35
5.6.200.0070.02216.21
5.6.190.0030.04417.30
5.6.180.0050.05217.47
5.6.170.0130.04017.34
5.6.160.0050.03417.32
5.6.150.0060.04317.27
5.6.140.0080.04017.36
5.6.130.0060.04217.27
5.6.120.0090.03217.44
5.6.110.0070.02517.36
5.6.100.0050.04417.22
5.6.90.0080.04417.36
5.6.80.0080.04516.96
5.6.70.0100.04317.11
5.6.60.0000.02816.84
5.6.50.0090.03117.12
5.6.40.0050.03517.10
5.6.30.0040.03516.80
5.6.20.0040.03517.00
5.6.10.0000.04816.96
5.6.00.0110.03217.20
5.5.380.0000.01314.32
5.5.370.0000.01114.43
5.5.360.0030.01014.25
5.5.350.0110.04417.37
5.5.340.0150.01816.20
5.5.330.0090.02217.22
5.5.320.0090.03617.15
5.5.310.0160.03017.32
5.5.300.0050.03717.17
5.5.290.0100.04217.16
5.5.280.0030.02817.23
5.5.270.0100.03117.13
5.5.260.0090.03917.29
5.5.250.0070.04517.00
5.5.240.0050.04417.00
5.5.230.0020.03716.86
5.5.220.0100.02616.77
5.5.210.0120.03716.78
5.5.200.0100.02616.96
5.5.190.0060.04116.82
5.5.180.0100.03716.79
5.5.170.0110.00314.08
5.5.160.0030.04316.90
5.5.150.0110.03516.96
5.5.140.0080.03516.93
5.5.130.0070.04116.83
5.5.120.0030.02816.75
5.5.110.0070.03717.00
5.5.100.0080.04016.63
5.5.90.0090.03216.69
5.5.80.0050.04416.78
5.5.70.0020.02716.82
5.5.60.0070.02116.87
5.5.50.0030.04816.72
5.5.40.0090.04216.92
5.5.30.0080.04116.69
5.5.20.0040.03216.85
5.5.10.0000.04816.66
5.5.00.0080.04216.74
5.4.450.0050.02915.48
5.4.440.0050.03315.35
5.4.430.0080.02315.35
5.4.420.0070.02915.54
5.4.410.0100.03515.43
5.4.400.0080.03515.38
5.4.390.0050.02415.39
5.4.380.0060.02015.38
5.4.370.0020.02315.33
5.4.360.0030.04515.29
5.4.350.0040.03815.22
5.4.340.0070.04015.36
5.4.330.0070.00711.51
5.4.320.0120.03315.38
5.4.310.0110.03515.33
5.4.300.0020.02715.18
5.4.290.0100.02015.33
5.4.280.0050.04115.36
5.4.270.0050.02315.33
5.4.260.0030.03915.33
5.4.250.0050.04215.36
5.4.240.0040.04515.29
5.4.230.0030.02515.21
5.4.220.0030.04015.38
5.4.210.0080.02215.33
5.4.200.0080.02515.31
5.4.190.0090.02715.38
5.4.180.0080.02315.30
5.4.170.0060.04115.33
5.4.160.0110.03615.37
5.4.150.0080.04115.23
5.4.140.0020.03914.01
5.4.130.0020.02413.96
5.4.120.0030.02713.92
5.4.110.0030.02713.95
5.4.100.0050.01813.98
5.4.90.0050.02314.09
5.4.80.0080.04014.08
5.4.70.0070.02213.92
5.4.60.0030.02313.99
5.4.50.0030.02514.08
5.4.40.0080.03513.95
5.4.30.0060.02514.07
5.4.20.0120.03513.95
5.4.10.0050.02813.88
5.4.00.0000.03613.67
5.3.290.0030.04013.11
5.3.280.0050.02213.06
5.3.270.0020.03013.06
5.3.260.0030.03513.06
5.3.250.0020.04313.06
5.3.240.0050.02313.07
5.3.230.0050.02513.00
5.3.220.0080.03813.07
5.3.210.0030.02413.08
5.3.200.0020.02213.11
5.3.190.0040.02213.05
5.3.180.0000.02512.98
5.3.170.0070.02713.00
5.3.160.0040.02413.04
5.3.150.0030.02313.07
5.3.140.0080.01713.05
5.3.130.0030.03413.11
5.3.120.0050.04313.06
5.3.110.0030.02513.03
5.3.100.0020.04212.78
5.3.90.0100.03712.77
5.3.80.0030.04212.78
5.3.70.0090.02812.80
5.3.60.0030.02912.73
5.3.50.0020.02412.75
5.3.40.0080.03612.75
5.3.30.0010.02512.74
5.3.20.0050.02112.59
5.3.10.0020.03212.61
5.3.00.0000.02412.52
5.2.170.0000.05711.21
5.2.160.0000.06311.07
5.2.150.0030.06311.15
5.2.140.0030.03011.14
5.2.130.0030.06311.27
5.2.120.0070.04711.13
5.2.110.0070.03711.11
5.2.100.0000.03011.07
5.2.90.0000.03711.27
5.2.80.0000.03311.10
5.2.70.0000.03011.15
5.2.60.0030.03011.13
5.2.50.0030.06311.07
5.2.40.0000.06311.05
5.2.30.0070.02311.13
5.2.20.0000.04010.99
5.2.10.0030.02710.75
5.2.00.0000.03010.81
5.1.60.0030.02310.00
5.1.50.0000.02710.00
5.1.40.0030.0239.95
5.1.30.0000.03010.39
5.1.20.0030.02310.41
5.1.10.0000.02710.09
5.1.00.0030.02310.03
5.0.50.0000.0208.70
5.0.40.0000.0208.40
5.0.30.0030.0308.19
5.0.20.0030.0178.20
5.0.10.0000.0208.13
5.0.00.0070.0278.13
4.4.90.0030.0137.27
4.4.80.0000.0207.27
4.4.70.0000.0177.27
4.4.60.0000.0177.27
4.4.50.0000.0177.27
4.4.40.0030.0207.27
4.4.30.0000.0177.27
4.4.20.0030.0137.27
4.4.10.0030.0137.27
4.4.00.0000.0237.27
4.3.110.0030.0137.27
4.3.100.0000.0137.27
4.3.90.0000.0137.27
4.3.80.0000.0237.27
4.3.70.0000.0137.27
4.3.60.0030.0107.27
4.3.50.0000.0137.27
4.3.40.0030.0207.27
4.3.30.0030.0137.27
4.3.20.0000.0177.27
4.3.10.0000.0177.27
4.3.00.0000.0137.27

preferences:
29.74 ms | 403 KiB | 5 Q