3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar($param = NULL) { if (func_num_args() == 0) throw new Exception("Missing parameter"); var_dump($param); } } $foo = new Foo(); $foo->bar("hello"); $foo->bar();

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.0150.00018.71
8.3.30.0070.00719.08
8.3.20.0040.00420.37
8.3.10.0000.00823.48
8.3.00.0080.00020.75
8.2.170.0120.00322.96
8.2.160.0160.00320.40
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00819.28
8.2.110.0060.00322.20
8.2.100.0120.00018.22
8.2.90.0060.00319.08
8.2.80.0030.00617.97
8.2.70.0030.00617.38
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0080.00019.94
8.2.30.0070.00018.08
8.2.20.0050.00317.61
8.2.10.0040.00417.93
8.2.00.0040.00417.60
8.1.270.0140.00321.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.91
8.1.230.0040.00719.08
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.44
8.1.160.0070.00021.96
8.1.150.0050.00318.64
8.1.140.0000.00817.30
8.1.130.0000.00817.83
8.1.120.0070.00017.49
8.1.110.0090.00217.45
8.1.100.0000.00817.52
8.1.90.0040.00417.51
8.1.80.0070.00017.43
8.1.70.0000.00717.36
8.1.60.0030.00717.46
8.1.50.0000.00817.52
8.1.40.0060.00317.45
8.1.30.0030.00717.55
8.1.20.0030.00617.55
8.1.10.0000.00817.56
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0000.00718.25
8.0.270.0070.00317.18
8.0.260.0000.00817.19
8.0.250.0020.00516.91
8.0.240.0040.00416.95
8.0.230.0030.00316.97
8.0.220.0030.00316.75
8.0.210.0050.00216.94
8.0.200.0080.00016.91
8.0.190.0070.00016.89
8.0.180.0000.00716.90
8.0.170.0050.00216.85
8.0.160.0070.00016.84
8.0.150.0040.00416.90
8.0.140.0070.00016.83
8.0.130.0000.00513.42
8.0.120.0030.00616.80
8.0.110.0050.00216.95
8.0.100.0080.00016.93
8.0.90.0000.00716.95
8.0.80.0090.00616.94
8.0.70.0040.00416.95
8.0.60.0040.00416.84
8.0.50.0020.00516.89
8.0.30.0140.00817.25
8.0.20.0150.00417.40
8.0.10.0020.00516.97
8.0.00.0030.01516.75
7.4.330.0050.00015.07
7.4.320.0000.00616.60
7.4.300.0000.00716.61
7.4.290.0030.00316.44
7.4.280.0030.00616.41
7.4.270.0070.00016.52
7.4.260.0030.00316.58
7.4.250.0040.00416.61
7.4.240.0060.00316.56
7.4.230.0000.00716.40
7.4.220.0100.00916.65
7.4.210.0110.00216.56
7.4.200.0030.00316.48
7.4.190.0040.00416.59
7.4.160.0060.00916.61
7.4.150.0120.00617.40
7.4.140.0130.00517.86
7.4.130.0080.00816.49
7.4.120.0140.00516.51
7.4.110.0140.00716.56
7.4.100.0100.00716.47
7.4.90.0030.01516.66
7.4.80.0110.00619.39
7.4.70.0070.01616.66
7.4.60.0120.00616.33
7.4.50.0030.00616.48
7.4.40.0000.02216.64
7.4.30.0070.00716.52
7.4.10.0040.01415.19
7.4.00.0100.00714.87
7.3.330.0050.00313.19
7.3.320.0050.00013.32
7.3.310.0030.00316.26
7.3.300.0040.00416.30
7.3.290.0060.00916.45
7.3.280.0080.01016.33
7.3.270.0110.00617.40
7.3.260.0130.00316.53
7.3.250.0090.00916.44
7.3.240.0180.00016.59
7.3.230.0090.00816.47
7.3.210.0130.00316.36
7.3.200.0180.00619.39
7.3.190.0080.01416.38
7.3.180.0060.01616.54
7.3.170.0080.00816.47
7.3.160.0120.00416.35
7.3.130.0040.01114.59
7.3.120.0080.00614.94
7.3.110.0160.00314.96
7.3.100.0040.00814.86
7.3.90.0000.00814.72
7.3.80.0100.00715.03
7.3.70.0110.00314.67
7.3.60.0030.00614.71
7.3.50.0070.00714.61
7.3.40.0090.00014.70
7.3.30.0110.00414.90
7.3.20.0160.00316.73
7.3.10.0040.00716.70
7.3.00.0100.00716.64
7.2.330.0100.00716.66
7.2.320.0100.01016.46
7.2.310.0140.00316.41
7.2.300.0120.00416.63
7.2.290.0030.01416.48
7.2.260.0030.01314.90
7.2.250.0040.01514.96
7.2.240.0060.00615.12
7.2.230.0070.00714.95
7.2.220.0030.00615.16
7.2.210.0100.00314.75
7.2.200.0070.01115.19
7.2.190.0060.00614.70
7.2.180.0030.01215.06
7.2.170.0030.01214.81
7.2.160.0160.00315.05
7.2.150.0070.01016.88
7.2.140.0000.01216.72
7.2.130.0110.00617.00
7.2.120.0040.00717.09
7.2.110.0090.00016.98
7.2.100.0130.00016.93
7.2.90.0090.00916.94
7.2.80.0090.00616.93
7.2.70.0070.00716.97
7.2.60.0070.00416.76
7.2.50.0040.01116.72
7.2.40.0090.00616.88
7.2.30.0070.01016.62
7.2.20.0060.01016.95
7.2.10.0040.00717.02
7.2.00.0040.00918.22
7.1.330.0040.01115.48
7.1.320.0060.00615.79
7.1.310.0060.00815.89
7.1.300.0060.00615.78
7.1.290.0030.01015.88
7.1.280.0060.00615.68
7.1.270.0110.00415.75
7.1.260.0060.00315.82
7.1.250.0080.00415.53
7.1.240.0070.00715.91
7.1.230.0040.00715.68
7.1.220.0040.01115.60
7.1.210.0060.01215.71
7.1.200.0050.01015.76
7.1.190.0000.01815.80
7.1.180.0000.01515.87
7.1.170.0030.01215.45
7.1.160.0030.01015.73
7.1.150.0090.00615.66
7.1.140.0030.01015.90
7.1.130.0090.00315.72
7.1.120.0040.00815.86
7.1.110.0070.00715.77
7.1.100.0050.01016.68
7.1.90.0130.00315.79
7.1.80.0000.00815.75
7.1.70.0060.00616.27
7.1.60.0060.00617.72
7.1.50.0050.00616.17
7.1.40.0080.00415.52
7.1.30.0070.00715.79
7.1.20.0120.00615.75
7.1.10.0090.00915.70
7.1.00.0020.04419.17
7.0.330.0070.00715.38
7.0.320.0130.00015.39
7.0.310.0140.00015.34
7.0.300.0120.00315.38
7.0.290.0000.00815.38
7.0.280.0080.00015.38
7.0.270.0050.00515.57
7.0.260.0000.01015.14
7.0.250.0060.00315.37
7.0.240.0060.00915.54
7.0.230.0040.00415.34
7.0.220.0080.00415.29
7.0.210.0100.00615.21
7.0.200.0010.00816.12
7.0.190.0060.00615.48
7.0.180.0060.00615.54
7.0.170.0000.01015.18
7.0.160.0070.01015.30
7.0.150.0030.00615.54
7.0.140.0070.03718.76
7.0.130.0080.00515.19
7.0.120.0080.00515.55
7.0.110.0000.01515.49
7.0.100.0130.02817.60
7.0.90.0150.05317.63
7.0.80.0200.03517.63
7.0.70.0140.04017.61
7.0.60.0040.04617.58
7.0.50.0050.03017.99
7.0.40.0090.04516.82
7.0.30.0090.04216.71
7.0.20.0000.02916.80
7.0.10.0120.03716.82
7.0.00.0070.04516.65
5.6.400.0070.00714.37
5.6.390.0110.00414.32
5.6.380.0060.01214.15
5.6.370.0100.00314.44
5.6.360.0030.00814.07
5.6.350.0070.00314.23
5.6.340.0000.00914.13
5.6.330.0030.00914.27
5.6.320.0070.01014.60
5.6.310.0030.01314.41
5.6.300.0120.00614.26
5.6.290.0060.00914.26
5.6.280.0000.04517.73
5.6.270.0000.01214.18
5.6.260.0070.01014.34
5.6.250.0050.04417.39
5.6.240.0050.05017.47
5.6.230.0100.04317.55
5.6.220.0080.04517.42
5.6.210.0050.04417.57
5.6.200.0050.04817.71
5.6.190.0100.04117.61
5.6.180.0100.04117.62
5.6.170.0070.04817.68
5.6.160.0080.04317.53
5.6.150.0070.04817.73
5.6.140.0080.03817.73
5.6.130.0120.04717.75
5.6.120.0080.04717.84
5.6.110.0080.04517.82
5.6.100.0080.04217.59
5.6.90.0090.04217.66
5.6.80.0070.02617.36
5.6.70.0070.04317.39
5.6.60.0050.04217.33
5.6.50.0080.03717.31
5.6.40.0070.03817.26
5.6.30.0070.04117.36
5.6.20.0110.03717.29
5.6.10.0030.02717.49
5.6.00.0130.03517.23
5.5.380.0130.03617.40
5.5.370.0070.04617.31
5.5.360.0040.04117.34
5.5.350.0070.04417.29
5.5.340.0080.03117.59
5.5.330.0080.02817.42
5.5.320.0070.04317.57
5.5.310.0100.04217.64
5.5.300.0100.04217.49
5.5.290.0080.03817.62
5.5.280.0100.04317.64
5.5.270.0070.03917.47
5.5.260.0070.02817.53
5.5.250.0140.03617.61
5.5.240.0070.03317.14
5.5.230.0120.02717.10
5.5.220.0050.04217.02
5.5.210.0070.04317.29
5.5.200.0030.03517.18
5.5.190.0090.04017.23
5.5.180.0050.03117.16
5.5.170.0070.00714.43
5.5.160.0080.02317.33
5.5.150.0080.03417.02
5.5.140.0070.03817.33
5.5.130.0050.02517.16
5.5.120.0080.02017.28
5.5.110.0050.02617.22
5.5.100.0060.03816.98
5.5.90.0060.03517.30
5.5.80.0050.03417.30
5.5.70.0060.03817.18
5.5.60.0030.02517.00
5.5.50.0070.03217.07
5.5.40.0070.02017.21
5.5.30.0050.04517.04
5.5.20.0080.03517.25
5.5.10.0080.02317.13
5.5.00.0070.03417.01
5.4.450.0070.04415.20
5.4.440.0070.02815.27
5.4.430.0040.04415.21
5.4.420.0100.03515.27
5.4.410.0080.02315.25
5.4.400.0030.04315.00
5.4.390.0070.03814.80
5.4.380.0060.04614.88
5.4.370.0050.04314.81
5.4.360.0050.02515.06
5.4.350.0030.04514.97
5.4.340.0050.04015.00
5.4.330.0030.00311.06
5.4.320.0050.02714.99
5.4.310.0100.03814.96
5.4.300.0050.04215.18
5.4.290.0070.03314.95
5.4.280.0070.03015.03
5.4.270.0030.02215.04
5.4.260.0070.03514.86
5.4.250.0080.03315.08
5.4.240.0080.03214.90
5.4.230.0050.03214.78
5.4.220.0080.04215.11
5.4.210.0050.04515.02
5.4.200.0020.02215.14
5.4.190.0050.03715.07
5.4.180.0050.02714.98
5.4.170.0030.02414.94
5.4.160.0030.02814.89
5.4.150.0080.03314.96
5.4.140.0050.03813.69
5.4.130.0040.01913.71
5.4.120.0080.03713.61
5.4.110.0000.03513.72
5.4.100.0030.02013.54
5.4.90.0050.04113.64
5.4.80.0090.03313.76
5.4.70.0020.03913.48
5.4.60.0110.03013.54
5.4.50.0010.03513.74
5.4.40.0050.03813.57
5.4.30.0070.03313.56
5.4.20.0080.03213.70
5.4.10.0050.03213.72
5.4.00.0080.01813.14
5.3.290.0050.03812.68
5.3.280.0070.01912.56
5.3.270.0000.02412.52
5.3.260.0030.02012.57
5.3.250.0050.03812.51
5.3.240.0060.04012.46
5.3.230.0030.03212.64
5.3.220.0070.03512.50
5.3.210.0090.03712.61
5.3.200.0000.02512.56
5.3.190.0020.04412.64
5.3.180.0060.02112.51
5.3.170.0020.03812.66
5.3.160.0050.03712.55
5.3.150.0030.04012.63
5.3.140.0100.03312.51
5.3.130.0050.04212.57
5.3.120.0040.02212.60
5.3.110.0050.01912.58
5.3.100.0020.03412.26
5.3.90.0030.03812.40
5.3.80.0020.04212.29
5.3.70.0100.03012.26
5.3.60.0060.03212.31
5.3.50.0070.03312.26
5.3.40.0040.02012.36
5.3.30.0000.04212.05
5.3.20.0050.03512.12
5.3.10.0060.03812.03
5.3.00.0040.04212.04
5.2.170.0070.06311.62
5.2.160.0000.06011.62
5.2.150.0030.06311.62
5.2.140.0030.07011.62
5.2.130.0030.06311.62
5.2.120.0100.05311.62
5.2.110.0030.05711.62
5.2.100.0030.05311.62
5.2.90.0070.06311.62
5.2.80.0100.05711.62
5.2.70.0100.05711.62
5.2.60.0130.04711.62
5.2.50.0030.06311.62
5.2.40.0030.04311.62
5.2.30.0030.06311.62
5.2.20.0030.05311.62
5.2.10.0100.05711.62
5.2.00.0100.02711.62
5.1.60.0000.03011.62
5.1.50.0030.05311.62
5.1.40.0000.04311.62
5.1.30.0030.03711.62
5.1.20.0000.03711.62
5.1.10.0030.02311.62
5.1.00.0000.04711.62
5.0.50.0070.03711.62
5.0.40.0070.03011.62
5.0.30.0030.06011.62
5.0.20.0000.02711.62
5.0.10.0030.03711.62
5.0.00.0100.03011.62
4.4.90.0000.03711.62
4.4.80.0030.02011.62
4.4.70.0030.03311.62
4.4.60.0100.03011.62
4.4.50.0000.03011.62
4.4.40.0000.03711.62
4.4.30.0030.03011.62
4.4.20.0000.03711.62
4.4.10.0000.03011.62
4.4.00.0070.02311.62
4.3.110.0030.01311.62
4.3.100.0000.02711.62
4.3.90.0030.01311.62
4.3.80.0070.03311.62
4.3.70.0000.02011.62
4.3.60.0000.02011.62
4.3.50.0030.01711.62
4.3.40.0000.02311.62
4.3.30.0000.02011.62
4.3.20.0030.01711.62
4.3.10.0030.03011.62
4.3.00.0000.01711.62

preferences:
51.13 ms | 400 KiB | 5 Q