3v4l.org

run code in 300+ PHP versions simultaneously
<?php # example 1 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.0100.01318.27
8.3.50.0040.01116.62
8.3.40.0070.00718.67
8.3.30.0070.00718.72
8.3.20.0080.00020.16
8.3.10.0040.00420.73
8.3.00.0090.00920.96
8.2.180.0110.00716.75
8.2.170.0090.00622.96
8.2.160.0100.01019.51
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00018.09
8.2.120.0040.00426.35
8.2.110.0030.00719.26
8.2.100.0040.00719.53
8.2.90.0030.00517.97
8.2.80.0040.00419.27
8.2.70.0040.00417.93
8.2.60.0030.00718.16
8.2.50.0000.00918.10
8.2.40.0000.00822.27
8.2.30.0040.00419.25
8.2.20.0080.00019.98
8.2.10.0030.00518.24
8.2.00.0000.00718.20
8.1.280.0040.01625.92
8.1.270.0040.00422.26
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00919.28
8.1.230.0090.00620.84
8.1.220.0000.00817.77
8.1.210.0030.00518.78
8.1.200.0110.00017.60
8.1.190.0060.00317.73
8.1.180.0000.00918.10
8.1.170.0060.00319.03
8.1.160.0070.00019.20
8.1.150.0040.00419.02
8.1.140.0040.00419.75
8.1.130.0090.00019.01
8.1.120.0040.00417.61
8.1.110.0000.00817.60
8.1.100.0030.00617.65
8.1.90.0050.00317.61
8.1.80.0000.00717.62
8.1.70.0030.00617.57
8.1.60.0060.00317.68
8.1.50.0090.00317.64
8.1.40.0050.00517.61
8.1.30.0070.00317.68
8.1.20.0050.00517.80
8.1.10.0000.00817.73
8.1.00.0080.00017.62
8.0.300.0070.00019.85
8.0.290.0000.00716.75
8.0.280.0000.00718.42
8.0.270.0000.00717.34
8.0.260.0030.00319.03
8.0.250.0000.00716.92
8.0.240.0000.00816.99
8.0.230.0000.00816.89
8.0.220.0040.00416.80
8.0.210.0070.00316.97
8.0.200.0030.00316.98
8.0.190.0040.00417.04
8.0.180.0020.00516.87
8.0.170.0060.00316.95
8.0.160.0030.00316.85
8.0.150.0000.00716.89
8.0.140.0000.00716.79
8.0.130.0000.00613.48
8.0.120.0000.00816.91
8.0.110.0040.00417.00
8.0.100.0040.00417.05
8.0.90.0030.00516.98
8.0.80.0130.00316.93
8.0.70.0000.00816.83
8.0.60.0050.00316.92
8.0.50.0050.00216.96
8.0.30.0100.00817.10
8.0.20.0080.01217.40
8.0.10.0000.00816.89
8.0.00.0150.00316.79
7.4.330.0030.00315.55
7.4.320.0030.00316.66
7.4.300.0000.00716.52
7.4.290.0000.00716.66
7.4.280.0080.00016.65
7.4.270.0000.00716.58
7.4.260.0050.00316.53
7.4.250.0040.00416.43
7.4.240.0040.00416.59
7.4.230.0000.00916.75
7.4.220.0200.00716.76
7.4.210.0060.00816.71
7.4.200.0000.00716.69
7.4.160.0080.00816.59
7.4.150.0130.00417.40
7.4.140.0090.00917.86
7.4.130.0210.00016.60
7.4.120.0080.00916.55
7.4.110.0090.00916.47
7.4.100.0170.00016.54
7.4.90.0090.00916.59
7.4.80.0070.01319.39
7.4.70.0100.01316.48
7.4.60.0040.01116.53
7.4.50.0070.01016.63
7.4.40.0070.01116.59
7.4.30.0140.00416.60
7.4.00.0110.00314.86
7.3.330.0000.00513.40
7.3.320.0000.00713.25
7.3.310.0000.00616.28
7.3.300.0070.00016.34
7.3.290.0060.00916.40
7.3.280.0050.01016.36
7.3.270.0100.00717.40
7.3.260.0130.00916.51
7.3.250.0090.01116.58
7.3.240.0140.00316.49
7.3.230.0100.00716.56
7.3.210.0060.00916.58
7.3.200.0060.00916.59
7.3.190.0120.00316.50
7.3.180.0110.00616.41
7.3.170.0070.01016.64
7.3.160.0060.01116.39
7.3.10.0120.00316.80
7.3.00.0060.00816.73
7.2.330.0120.00616.47
7.2.320.0160.00616.55
7.2.310.0090.01216.45
7.2.300.0040.01516.82
7.2.290.0110.00616.55
7.2.130.0120.00616.86
7.2.120.0030.01416.97
7.2.110.0100.00715.62
7.2.100.0990.00815.84
7.2.90.0290.00815.93
7.2.80.0570.00515.88
7.2.70.1640.00715.98
7.2.60.0060.01116.36
7.2.50.0180.00716.29
7.2.40.0300.01315.72
7.2.30.0060.00915.96
7.2.20.0340.00815.96
7.2.10.0310.00615.90
7.2.00.0140.00316.02
7.1.250.0100.00015.71
7.1.230.1580.00313.65
7.1.220.1190.01213.59
7.1.210.1480.00513.71
7.1.200.1500.01114.81
7.1.190.0160.00313.70
7.1.180.1260.00614.15
7.1.170.0610.01013.94
7.1.160.0190.00413.80
7.1.150.0510.00613.75
7.1.140.1500.00313.96
7.1.130.0210.00614.08
7.1.120.0100.00913.74
7.1.110.3820.00314.12
7.1.100.3630.00914.05
7.1.90.0160.00013.90
7.1.80.0670.01013.72
7.1.70.0370.01014.61
7.1.60.1160.01432.75
7.1.50.0630.01132.63
7.1.40.0660.00532.25
7.1.30.0520.01432.41
7.1.20.0900.01232.22
7.1.10.0770.01314.37
7.1.00.0300.00914.38
7.0.310.0790.00713.92
7.0.300.0200.00413.65
7.0.290.0630.00913.63
7.0.280.6110.00713.62
7.0.270.0270.00913.70
7.0.260.0460.00713.97
7.0.250.4510.01013.48
7.0.240.3850.00313.76
7.0.230.0800.00913.86
7.0.220.0640.01313.80
7.0.210.0830.00013.62
7.0.200.1270.01214.19
7.0.190.0390.01014.33
7.0.180.0620.01614.02
7.0.170.0470.00914.03
7.0.160.0690.00914.01
7.0.150.0470.01014.07
7.0.140.0980.00814.19
7.0.130.0540.01614.24
7.0.120.0660.00914.28
7.0.110.0830.00814.14
7.0.100.1020.01214.16
7.0.90.0910.01214.10
7.0.80.0920.00614.15
7.0.70.0860.01014.04
7.0.60.0880.01314.16
7.0.50.0800.01314.21
7.0.40.0750.00914.23
7.0.30.0720.01114.22
7.0.20.0880.01014.09
7.0.10.0760.01314.24
7.0.00.0760.01414.01
5.6.380.0130.00014.15

preferences:
49.88 ms | 401 KiB | 5 Q