3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $prop = [1,2,3]; } class B{ public $someProp; } $a = new A; $b = new B; $b->someProp = $a->prop; mb_convert_variables('UTF-8', 'CP1252', $b); $a = new A; print_r($a); # example 2 class C { public $prop = ['string', 'string2']; } $c = new C; mb_convert_variables('UTF-8', 'CP1252', $c); $c = new C; print_r($c);

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.00618.28
8.3.50.0150.00016.57
8.3.40.0170.00718.71
8.3.30.0030.01018.71
8.3.20.0000.00820.73
8.3.10.0080.00022.27
8.3.00.0040.00421.90
8.2.180.0130.00618.66
8.2.170.0100.01022.96
8.2.160.0140.00022.38
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0050.00522.51
8.2.100.0100.00317.72
8.2.90.0050.00517.88
8.2.80.0060.00318.91
8.2.70.0060.00317.75
8.2.60.0030.00518.05
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00418.13
8.2.20.0000.00818.15
8.2.10.0000.00719.38
8.2.00.0050.00319.36
8.1.280.0140.00025.92
8.1.270.0100.00020.49
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.01019.05
8.1.230.0080.00417.82
8.1.220.0060.00317.76
8.1.210.0080.00018.77
8.1.200.0060.00317.60
8.1.190.0080.00017.48
8.1.180.0000.00818.10
8.1.170.0040.00418.79
8.1.160.0050.00319.03
8.1.150.0030.00519.11
8.1.140.0040.00422.73
8.1.130.0030.00317.45
8.1.120.0000.00817.52
8.1.110.0060.00617.55
8.1.100.0060.00417.63
8.1.90.0050.00717.54
8.1.80.0040.00817.57
8.1.70.0070.00317.49
8.1.60.0090.00417.65
8.1.50.0070.00717.52
8.1.40.0110.00117.61
8.1.30.0070.00617.70
8.1.20.0130.00117.69
8.1.10.0090.00517.72
8.1.00.0050.00817.73
8.0.300.0050.00218.86
8.0.290.0040.00416.73
8.0.280.0050.00218.40
8.0.270.0070.00018.12
8.0.260.0000.00716.77
8.0.250.0000.00917.01
8.0.240.0080.00516.95
8.0.230.0080.00216.99
8.0.220.0040.00616.87
8.0.210.0100.00016.93
8.0.200.0070.00316.94
8.0.190.0110.00016.92
8.0.180.0080.00517.00
8.0.170.0080.00516.86
8.0.160.0040.00616.89
8.0.150.0060.00616.83
8.0.140.0090.00216.91
8.0.130.0100.00015.05
8.0.120.0110.00016.86
8.0.110.0080.00216.97
8.0.100.0050.00616.89
8.0.90.0110.00117.04
8.0.80.0110.00716.90
8.0.70.0020.00816.91
8.0.60.0080.00316.91
8.0.50.0110.00016.77
8.0.30.0050.01016.99
8.0.20.0100.00717.22
8.0.10.0040.00816.94
8.0.00.0060.00716.84
7.4.330.0000.00516.90
7.4.320.0020.00516.58
7.4.300.0070.00316.55
7.4.290.0040.00616.60
7.4.280.0050.00516.67
7.4.270.0050.00716.66
7.4.260.0060.00514.95
7.4.250.0060.00616.57
7.4.240.0100.00016.59
7.4.230.0070.00416.61
7.4.220.0040.00616.65
7.4.210.0070.01016.63
7.4.200.0060.00316.60
7.4.190.0080.00516.35
7.4.180.0100.00316.77
7.4.160.0080.00416.56
7.4.150.0120.00316.63
7.4.140.0050.00816.41
7.4.130.0060.01316.53
7.4.120.0090.00716.64
7.4.110.0110.00616.51
7.4.100.0090.00716.57
7.4.90.0080.00716.57
7.4.80.0070.00918.00
7.4.70.0080.01116.50
7.4.60.0100.00516.58
7.4.50.0020.01016.41
7.4.40.0080.00716.49
7.4.30.0150.00416.54
7.4.20.0070.01316.51
7.4.10.0090.00816.39
7.4.00.0090.00816.38
7.3.330.0090.00316.36
7.3.320.0070.00314.88
7.3.310.0090.00216.25
7.3.300.0030.00916.29
7.3.290.0090.00816.39
7.3.280.0080.00716.38
7.3.270.0090.00816.34
7.3.260.0120.00516.32
7.3.250.0130.00316.35
7.3.240.0110.00716.47
7.3.230.0120.00716.44
7.3.220.0160.00016.09
7.3.210.0090.00716.37
7.3.200.0100.00616.46
7.3.190.0100.00616.41
7.3.180.0150.00316.38
7.3.170.0110.00516.50
7.3.160.0040.01216.35
7.3.150.0130.00416.38
7.3.140.0130.00416.30
7.3.130.0110.00916.39
7.3.120.0130.00416.39
7.3.110.0110.00616.40
7.3.100.0070.00916.28
7.3.90.0090.00816.41
7.3.80.0100.01316.38
7.3.70.0120.00416.36
7.3.60.0110.00516.36
7.3.50.0070.01016.50
7.3.40.0080.00816.39
7.3.30.0110.00616.42
7.3.20.0080.01016.48
7.3.10.0080.00816.34
7.3.00.0070.01216.50
7.2.340.0140.00016.32
7.2.330.0100.00616.34
7.2.320.0050.01116.48
7.2.310.0100.00716.63
7.2.300.0080.00916.63
7.2.290.0080.00716.51
7.2.280.0060.01116.54
7.2.270.0090.00716.54
7.2.260.0060.01116.68
7.2.250.0120.00616.43
7.2.240.0120.00616.55
7.2.230.0090.00916.63
7.2.220.0100.00916.52
7.2.210.0080.01116.51
7.2.200.0030.01316.53
7.2.190.0080.00916.58
7.2.180.0100.00816.69
7.2.170.0080.01016.63
7.2.160.0150.00416.57
7.2.150.0120.00616.67
7.2.140.0100.00916.67
7.2.130.0150.01116.72
7.2.120.0100.00616.74
7.2.110.0130.00416.68
7.2.100.0140.00916.71
7.2.90.0080.00916.71
7.2.80.0090.01016.69
7.2.70.0140.00616.63
7.2.60.0050.01116.57
7.2.50.0090.01116.54
7.2.40.0120.00816.62
7.2.30.0110.00916.62
7.2.20.0110.00616.69
7.2.10.0110.00716.66
7.2.00.0100.00816.62

preferences:
69.28 ms | 401 KiB | 5 Q