3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($tring, $string2){ return $tring . $string2; } $obj = new stdClass(); $obj->bean = array(); $das = array('function' => 'teste'); $functions[] = $das; $obj->bean = $das; var_dump($obj); echo $obj->bean['function']("Lucas","Oliveira");

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.0030.01016.47
8.3.50.0360.00321.98
8.3.40.0100.01018.96
8.3.30.0140.00018.79
8.3.20.0000.00820.34
8.3.10.0030.00523.70
8.3.00.0080.00019.50
8.2.180.0100.01018.41
8.2.170.0140.00722.96
8.2.160.0140.00020.38
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00417.50
8.2.120.0050.00226.35
8.2.110.0000.00920.53
8.2.100.0060.00617.93
8.2.90.0000.00819.23
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0000.00819.41
8.2.30.0040.00420.61
8.2.20.0000.00817.62
8.2.10.0040.00418.00
8.2.00.0000.00918.05
8.1.280.0100.00725.92
8.1.270.0050.00523.82
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0040.00422.26
8.1.230.0080.00417.42
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0000.01017.35
8.1.190.0000.00917.25
8.1.180.0030.00518.10
8.1.170.0030.00618.59
8.1.160.0040.00421.94
8.1.150.0070.00018.69
8.1.140.0080.00019.59
8.1.130.0080.00017.65
8.1.120.0070.00017.44
8.1.110.0030.00317.41
8.1.100.0070.00017.30
8.1.90.0020.00517.34
8.1.80.0030.00317.28
8.1.70.0030.00317.38
8.1.60.0000.00817.44
8.1.50.0040.00417.54
8.1.40.0030.00617.41
8.1.30.0030.00517.55
8.1.20.0050.00217.58
8.1.10.0000.00817.47
8.1.00.0100.00017.40
8.0.300.0040.00418.77
8.0.290.0020.00516.75
8.0.280.0000.00718.34
8.0.270.0000.00717.07
8.0.260.0040.00417.19
8.0.250.0000.00716.97
8.0.240.0000.00716.87
8.0.230.0000.00816.99
8.0.220.0030.00316.90
8.0.210.0000.00716.81
8.0.200.0040.00416.93
8.0.190.0060.00316.93
8.0.180.0000.00716.93
8.0.170.0000.00716.96
8.0.160.0000.00816.82
8.0.150.0050.00316.75
8.0.140.0050.00316.73
8.0.130.0030.00313.30
8.0.120.0030.00616.81
8.0.110.0040.00416.81
8.0.100.0040.00416.88
8.0.90.0000.00716.78
8.0.80.0030.01216.94
8.0.70.0040.00416.69
8.0.60.0000.00816.85
8.0.50.0040.00416.76
8.0.30.0120.00717.10
8.0.20.0100.01117.40
8.0.10.0040.00416.86
8.0.00.0080.01216.81
7.4.330.0030.00316.82
7.4.320.0030.00316.48
7.4.300.0000.00616.50
7.4.290.0070.00016.52
7.4.280.0000.00816.55
7.4.270.0050.00316.59
7.4.260.0030.00316.48
7.4.250.0080.00016.57
7.4.240.0020.00616.60
7.4.230.0030.00316.69
7.4.220.0120.01016.46
7.4.210.0100.01016.50
7.4.200.0030.00316.34
7.4.160.0030.01316.52
7.4.150.0040.01317.40
7.4.140.0060.01517.86
7.4.130.0110.01116.65
7.4.120.0100.01116.43
7.4.110.0040.01416.55
7.4.100.0090.00916.66
7.4.90.0140.00316.52
7.4.80.0100.00719.39
7.4.70.0120.00916.53
7.4.60.0110.00616.50
7.4.50.0090.00616.35
7.4.40.0030.01416.59
7.4.30.0060.01016.22
7.4.10.0070.01015.14
7.4.00.0050.01214.79
7.3.330.0040.00413.36
7.3.320.0000.00613.44
7.3.310.0030.00616.33
7.3.300.0040.00416.29
7.3.290.0070.00916.41
7.3.280.0060.01216.41
7.3.270.0060.01217.40
7.3.260.0070.01416.64
7.3.250.0110.00816.42
7.3.240.0020.01516.47
7.3.230.0120.00916.50
7.3.210.0060.01216.34
7.3.200.0090.01316.42
7.3.190.0060.01016.35
7.3.180.0110.00616.41
7.3.170.0250.00016.45
7.3.160.0100.00716.45
7.3.130.0140.00314.63
7.3.120.0030.01714.92
7.3.110.0070.01314.57
7.3.100.0040.00714.94
7.3.90.0040.01114.93
7.3.80.0050.00514.69
7.3.70.0090.00614.75
7.3.60.0070.00314.75
7.3.50.0030.00714.92
7.3.40.0110.00414.65
7.3.30.0090.00614.68
7.3.20.0090.00916.72
7.3.10.0040.01016.66
7.3.00.0070.00716.74
7.2.330.0090.00916.79
7.2.320.0050.01316.80
7.2.310.0190.00316.67
7.2.300.0090.00916.43
7.2.290.0120.00616.52
7.2.260.0070.01014.98
7.2.250.0070.01115.19
7.2.240.0120.00014.83
7.2.230.0000.01314.87
7.2.220.0000.00914.91
7.2.210.0060.00914.68
7.2.200.0070.00715.05
7.2.190.0060.00615.04
7.2.180.0060.00914.92
7.2.170.0030.01314.89
7.2.160.0060.00914.94
7.2.150.0030.01017.07
7.2.140.0120.00316.66
7.2.130.0050.00816.70
7.2.120.0060.00616.82
7.2.110.0050.00716.84
7.2.100.0060.00816.83
7.2.90.0100.00216.89
7.2.80.0060.01016.84
7.2.70.0110.00316.88
7.2.60.0060.00616.65
7.2.50.0070.00816.92
7.2.40.0080.00616.81
7.2.30.0040.00816.83
7.2.20.0090.00416.62
7.2.10.0040.01116.95
7.2.00.0060.00817.69
7.1.330.0040.01115.90
7.1.320.0030.00715.82
7.1.310.0100.00315.78
7.1.300.0140.00315.75
7.1.290.0030.01015.87
7.1.280.0070.00415.90
7.1.270.0100.00715.55
7.1.260.0000.01315.93
7.1.250.0060.00715.86
7.1.240.0080.00415.60
7.1.230.0080.00015.81
7.1.220.0030.00615.78
7.1.210.0090.00615.74
7.1.200.0090.00415.78
7.1.190.0080.00415.79
7.1.180.0000.00915.78
7.1.170.0000.01515.52
7.1.160.0040.00715.87
7.1.150.0060.00915.73
7.1.140.0070.00415.48
7.1.130.0070.00715.95
7.1.120.0000.01415.79
7.1.110.0060.01015.64
7.1.100.0510.00413.99
7.1.90.0030.01315.74
7.1.80.0060.00315.59
7.1.70.0050.00616.38
7.1.60.0020.01717.50
7.1.50.0000.01416.53
7.1.40.0030.01015.98
7.1.30.0030.00615.75
7.1.20.0050.00515.78
7.1.10.0070.01015.70
7.1.00.0040.04219.09
7.0.330.0030.00715.44
7.0.320.0140.00015.20
7.0.310.0030.00715.51
7.0.300.0120.00315.43
7.0.290.0080.00015.41
7.0.280.0080.00815.45
7.0.270.0030.00615.46
7.0.260.0000.01115.33
7.0.250.0070.00715.15
7.0.240.0030.01215.42
7.0.230.0040.00715.47
7.0.220.0090.00015.12
7.0.210.0030.01015.48
7.0.200.0040.00616.15
7.0.190.0000.01215.63
7.0.180.0060.00615.26
7.0.170.0030.00615.29
7.0.160.0100.00615.44
7.0.150.0070.00715.52
7.0.140.0000.01015.18
7.0.130.0000.01015.49
7.0.120.0000.01015.36
7.0.110.0040.00715.55
7.0.100.0060.00615.06
7.0.90.0110.00015.36
7.0.80.0000.01515.60
7.0.70.0040.00815.43
7.0.60.0070.04017.65
7.0.50.0050.03916.70
7.0.40.0050.05016.84
7.0.30.0080.03216.79
7.0.20.0270.02816.89
7.0.10.0070.04916.84
7.0.00.0070.03216.92
5.6.400.0090.00014.46
5.6.390.0110.00314.31
5.6.380.0060.00914.68
5.6.370.0040.00414.50
5.6.360.0000.01414.53
5.6.350.0070.00414.86
5.6.340.0100.00614.36
5.6.330.0030.00714.66
5.6.320.0060.00914.48
5.6.310.0000.01314.42
5.6.300.0000.00914.48
5.6.290.0060.00314.73
5.6.280.0020.02117.69
5.6.270.0050.00914.57
5.6.260.0060.00614.34
5.6.250.0070.00714.37
5.6.240.0000.01514.68
5.6.230.0060.00314.63
5.6.220.0100.00314.48
5.6.210.0020.03317.41
5.6.200.0090.04316.21
5.6.190.0020.02817.55
5.6.180.0200.03817.51
5.6.170.0070.03317.51
5.6.160.0070.03017.40
5.6.150.0070.04516.21
5.6.140.0040.04516.33
5.6.130.0090.03516.36
5.6.120.0060.03017.71
5.6.110.0150.03317.81
5.6.100.0080.03817.63
5.6.90.0100.04317.78
5.6.80.0100.03317.39
5.6.70.0060.00914.21
5.6.60.0090.00014.40
5.6.50.0040.01214.41
5.6.40.0070.00714.26
5.6.30.0000.01314.58
5.6.20.0030.01014.38
5.6.10.0060.00614.26
5.6.00.0070.00714.07
5.5.380.0040.00714.02
5.5.370.0070.00314.36
5.5.360.0030.01414.43
5.5.350.0070.03417.39
5.5.340.0040.02416.21
5.5.330.0100.04017.35
5.5.320.0070.02817.15
5.5.310.0180.04317.28
5.5.300.0030.02416.05
5.5.290.0110.03116.05
5.5.280.0070.02717.58
5.5.270.0070.03317.48
5.5.260.0080.04817.54
5.5.250.0080.02817.37
5.5.240.2090.02217.40
5.5.230.0100.00314.16
5.5.220.0030.01214.06
5.5.210.0000.00813.98
5.5.200.0100.00714.43
5.5.190.0030.00614.21
5.5.180.0030.00614.36
5.5.170.0040.00814.17
5.5.160.0080.00314.54
5.5.150.0000.01514.37
5.5.140.0060.00614.44
5.5.130.0100.00314.29
5.5.120.0110.00314.28
5.5.110.0000.01713.89
5.5.100.0000.00814.41
5.5.90.0040.00814.34
5.5.80.0070.00714.35
5.5.70.0080.00814.05
5.5.60.0070.00714.45
5.5.50.0080.00814.30
5.5.40.0000.00914.06
5.5.30.0030.00714.21
5.5.20.0060.00614.04
5.5.10.0000.01614.33
5.5.00.0060.00614.18

preferences:
60.07 ms | 401 KiB | 5 Q