3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a{ public function b(){ echo 'toto'; } } $a = new a(); $method = 'b'; var_dump(is_callable(array($a,$method))); $a->$method(); function uc_words($str, $destSep='_', $srcSep='_') { return str_replace(' ', $destSep, ucwords(str_replace($srcSep, ' ', $str))); } $attr = 'mon_code_attribut'; echo uc_words($attr,'');

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.60.0120.00318.30
8.3.50.0140.00416.64
8.3.40.0120.00318.97
8.3.30.0070.00718.67
8.3.20.0040.00420.34
8.3.10.0060.00323.65
8.3.00.0000.00722.39
8.2.180.0120.00318.29
8.2.170.0110.00322.96
8.2.160.0070.00719.48
8.2.150.0080.00024.18
8.2.140.0170.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00017.75
8.2.110.0040.00420.17
8.2.100.0070.00417.72
8.2.90.0000.00819.21
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00918.04
8.2.50.0030.00518.07
8.2.40.0080.00021.25
8.2.30.0000.00819.88
8.2.20.0000.00817.70
8.2.10.0030.00518.05
8.2.00.0000.00818.19
8.1.270.0040.00420.38
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0070.00321.98
8.1.230.0080.00422.21
8.1.220.0050.00317.77
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0050.00318.64
8.1.160.0080.00021.99
8.1.150.0040.00418.90
8.1.140.0060.00317.34
8.1.130.0040.00417.71
8.1.120.0040.00417.41
8.1.110.0040.00417.40
8.1.100.0030.00317.48
8.1.90.0040.00417.40
8.1.80.0050.00217.47
8.1.70.0000.00717.46
8.1.60.0070.00317.59
8.1.50.0030.00817.55
8.1.40.0070.00017.53
8.1.30.0040.00417.56
8.1.20.0080.00017.67
8.1.10.0070.00017.55
8.1.00.0040.00417.49
8.0.300.0060.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00818.46
8.0.270.0050.00217.21
8.0.260.0040.00417.27
8.0.250.0000.00716.95
8.0.240.0040.00416.98
8.0.230.0000.00716.98
8.0.220.0030.00516.79
8.0.210.0000.00816.84
8.0.200.0070.00017.05
8.0.190.0000.01116.88
8.0.180.0080.00016.95
8.0.170.0040.00416.90
8.0.160.0030.00316.91
8.0.150.0000.00716.98
8.0.140.0070.00016.85
8.0.130.0050.00313.42
8.0.120.0000.00816.90
8.0.110.0030.00516.98
8.0.100.0000.00816.93
8.0.90.0000.00816.86
8.0.80.0060.01216.90
8.0.70.0030.00616.90
8.0.60.0040.00416.89
8.0.50.0070.00016.97
8.0.30.0030.01517.16
8.0.20.0120.00617.40
8.0.10.0000.00716.83
8.0.00.0130.00516.75
7.4.330.0060.00015.08
7.4.320.0030.00316.54
7.4.300.0060.00016.64
7.4.290.0000.00716.53
7.4.280.0060.00316.51
7.4.270.0000.00716.54
7.4.260.0070.00016.60
7.4.250.0080.00016.49
7.4.240.0020.00616.67
7.4.230.0000.00716.64
7.4.220.0110.00416.46
7.4.210.0080.00616.47
7.4.200.0050.00216.72
7.4.160.0100.01016.64
7.4.150.0120.01217.40
7.4.140.0100.01217.86
7.4.130.0120.00516.57
7.4.120.0110.00816.60
7.4.110.0110.01116.49
7.4.100.0120.00916.42
7.4.90.0120.00616.57
7.4.80.0170.00819.39
7.4.70.0120.00316.54
7.4.60.0050.01116.46
7.4.50.0040.00416.34
7.4.40.0180.00616.64
7.4.30.0150.00316.58
7.4.10.0070.01114.71
7.4.00.0050.01115.03
7.3.330.0080.00013.31
7.3.320.0030.00313.18
7.3.310.0000.00716.41
7.3.300.0060.00016.18
7.3.290.0090.00716.29
7.3.280.0060.01016.31
7.3.270.0140.00517.40
7.3.260.0120.00616.68
7.3.250.0070.01016.40
7.3.240.0100.00716.29
7.3.230.0120.00616.42
7.3.210.0110.00516.49
7.3.200.0130.01019.39
7.3.190.0160.00016.51
7.3.180.0160.00616.57
7.3.170.0030.02116.27
7.3.160.0080.01616.39
7.3.130.0070.01014.86
7.3.120.0060.00914.75
7.3.110.0050.01214.65
7.3.100.0050.00914.88
7.3.90.0050.00814.81
7.3.80.0080.00514.86
7.3.70.0020.01214.80
7.3.60.0060.00814.86
7.3.50.0030.00814.74
7.3.40.0070.00714.72
7.3.30.0050.00714.79
7.3.20.0080.00516.53
7.3.10.0020.01016.65
7.3.00.0040.01016.60
7.2.330.0090.00916.85
7.2.320.0110.01016.80
7.2.310.0070.01316.69
7.2.300.0160.00016.87
7.2.290.0030.01416.31
7.2.260.0070.01015.07
7.2.250.0080.00815.06
7.2.240.0040.01215.01
7.2.230.0050.01015.15
7.2.220.0050.00815.10
7.2.210.0060.00814.94
7.2.200.0030.01015.09
7.2.190.0080.00614.86
7.2.180.0070.00614.85
7.2.170.0040.01015.05
7.2.160.0050.00814.94
7.2.150.0090.00716.89
7.2.140.0050.01016.81
7.2.130.0070.00716.96
7.2.120.0080.00616.94
7.2.110.0070.00816.83
7.2.100.0080.00616.99
7.2.90.0060.00716.97
7.2.80.0040.00916.81
7.2.70.0060.00916.81
7.2.60.0080.00616.83
7.2.50.0070.00816.89
7.2.40.0040.01016.90
7.2.30.0070.00717.00
7.2.20.0030.01016.83
7.2.10.0050.00616.96
7.2.00.0100.00817.39
7.1.330.0060.00615.80
7.1.320.0070.00615.82
7.1.310.0050.00715.78
7.1.300.0050.00615.78
7.1.290.0080.00515.76
7.1.280.0060.00715.75
7.1.270.0060.00615.74
7.1.260.0050.00815.55
7.1.250.0030.01115.76
7.1.240.0060.00615.83
7.1.230.0070.01015.86
7.1.220.0040.00815.73
7.1.210.0000.01515.90
7.1.200.0000.01515.87
7.1.190.0000.01015.57
7.1.180.0060.00615.55
7.1.170.0100.00315.52
7.1.160.0110.00415.84
7.1.150.0060.00915.70
7.1.140.0070.00715.58
7.1.130.0040.00415.70
7.1.120.0030.01315.58
7.1.110.0000.00915.63
7.1.100.0030.00716.69
7.1.90.0040.00715.76
7.1.80.0070.00715.82
7.1.70.0030.00816.56
7.1.60.0100.00817.99
7.1.50.0100.00516.35
7.1.40.0000.01615.63
7.1.30.0030.01215.82
7.1.20.0130.00015.84
7.1.10.0120.00315.63
7.1.00.0000.04618.83
7.0.330.0030.00615.55
7.0.320.0090.00315.39
7.0.310.0070.01015.39
7.0.300.0040.01115.18
7.0.290.0040.01115.64
7.0.280.0030.00715.60
7.0.270.0000.01015.22
7.0.260.0140.00015.18
7.0.250.0000.00815.51
7.0.240.0040.00715.49
7.0.230.0000.01115.38
7.0.220.0070.00715.44
7.0.210.0030.00715.39
7.0.200.0110.00815.98
7.0.190.0070.00715.39
7.0.180.0040.00815.37
7.0.170.0040.01115.47
7.0.160.0000.01015.54
7.0.150.0030.00615.46
7.0.140.0030.00715.57
7.0.130.0090.00315.41
7.0.120.0090.00015.48
7.0.110.0060.00315.50
7.0.100.0080.00415.41
7.0.90.0050.00315.54
7.0.80.0000.01315.50
7.0.70.0060.00815.47
7.0.60.0080.04517.60
7.0.50.0070.03816.77
7.0.40.0060.03516.83
7.0.30.0110.02416.84
7.0.20.0120.02816.83
7.0.10.0080.02816.82
7.0.00.0040.02416.78
5.6.400.0040.00714.36
5.6.390.0070.00714.39
5.6.380.0070.00714.54
5.6.370.0030.01414.54
5.6.360.0080.00814.47
5.6.350.0050.00514.64
5.6.340.0030.00614.55
5.6.330.0000.01514.24
5.6.320.0070.00714.34
5.6.310.0100.00314.47
5.6.300.0030.01014.48
5.6.290.0030.01314.29
5.6.280.0030.03517.42
5.6.270.0070.00314.48
5.6.260.0100.00014.31
5.6.250.0120.00314.35
5.6.240.0030.00714.46
5.6.230.0090.00314.11
5.6.220.0060.00814.27
5.6.210.0100.04117.41
5.6.200.0070.04716.32
5.6.190.0030.02917.19
5.6.180.0220.02717.41
5.6.170.0210.04217.39
5.6.160.0050.02517.35
5.6.150.0080.03516.23
5.6.140.0070.02616.24
5.6.130.0090.02416.32
5.6.120.0050.04517.73
5.6.110.0030.03417.59
5.6.100.0080.04317.66
5.6.90.0080.04317.75
5.6.80.0050.02717.36
5.6.70.0030.04617.35
5.6.60.0040.00414.07
5.6.50.0070.00414.02
5.6.40.0060.01014.14
5.6.30.0040.00814.29
5.6.20.0060.00314.37
5.6.10.0060.00614.29
5.6.00.0060.00314.49
5.5.380.0060.00314.68
5.5.370.0070.01014.39
5.5.360.0030.00614.63
5.5.350.0060.01817.15
5.5.340.0030.02716.27
5.5.330.0020.03317.37
5.5.320.0120.04317.39
5.5.310.0180.04417.43
5.5.300.0040.02316.11
5.5.290.0050.04016.30
5.5.280.0030.02917.36
5.5.270.0070.02517.45
5.5.260.0030.04717.47
5.5.250.0040.03517.45
5.5.240.0170.04017.23
5.5.230.0070.00713.90
5.5.220.0090.00314.21
5.5.210.0070.00714.14
5.5.200.0040.01114.25
5.5.190.0040.00714.05
5.5.180.0060.00313.77
5.5.170.0060.00614.07
5.5.160.0060.00614.06
5.5.150.0040.00814.32
5.5.140.0040.00813.98
5.5.130.0090.00313.87
5.5.120.0070.00314.15
5.5.110.0120.00014.09
5.5.100.0060.01014.29
5.5.90.0060.00914.25
5.5.80.0000.01514.34
5.5.70.0060.00614.31
5.5.60.0030.01014.11
5.5.50.0000.00913.89
5.5.40.0030.01014.33
5.5.30.0100.00014.28
5.5.20.0040.00814.02
5.5.10.0030.01014.38
5.5.00.0080.00814.00
5.4.450.0070.04216.10
5.4.440.0370.04215.99
5.4.430.0450.03715.98
5.4.420.0250.03015.84
5.4.410.0100.03915.92
5.4.400.0460.03315.75
5.4.390.0280.02815.90
5.4.380.0050.03015.94
5.4.370.0280.02815.82
5.4.360.0250.03315.75
5.4.350.0450.02515.81
5.4.340.0480.02515.87
5.4.330.0060.00012.50
5.4.320.0550.03115.90
5.4.310.0400.02615.78
5.4.300.0380.03715.85
5.4.290.0360.03415.81
5.4.280.0460.03315.78
5.4.270.0530.04015.86
5.4.260.0330.04515.96
5.4.250.0450.03315.88
5.4.240.0450.03015.88
5.4.230.0510.02815.83
5.4.220.0390.03715.74
5.4.210.0420.03115.80
5.4.200.0470.03114.70
5.4.190.0420.03915.80
5.4.180.0480.03215.83
5.4.170.0450.04015.75
5.4.160.0170.03815.75
5.4.150.0350.03515.75
5.4.140.0380.03414.44
5.4.130.0330.02814.54
5.4.120.0330.02814.54
5.4.110.0170.03414.53
5.4.100.0280.03314.43
5.4.90.0230.03114.64
5.4.80.0070.02714.47
5.4.70.0280.02714.54
5.4.60.0120.02214.47
5.4.50.0050.04514.38
5.4.40.0100.04014.46
5.4.30.0150.02714.52
5.4.20.0110.02114.49
5.4.10.0060.00612.50
5.4.00.0000.01112.50

preferences:
58.96 ms | 400 KiB | 5 Q