3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $test = 'sd'; public $test2 = [ 'test' => true, 'foo' => ['test'=>'asdasdads' ] ]; } $foo = new Foo; var_dump( json_decode(json_encode($foo), true));

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.0170.00318.43
8.3.50.0100.00316.35
8.3.40.0120.00918.64
8.3.30.0150.00018.43
8.3.20.0040.00420.25
8.3.10.0050.00321.90
8.3.00.0060.00321.01
8.2.180.0100.00718.17
8.2.170.0120.00622.96
8.2.160.0030.01022.16
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0030.00722.20
8.2.120.0000.00826.35
8.2.110.0060.00320.52
8.2.100.0080.00417.72
8.2.90.0000.00818.80
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0000.00817.93
8.2.50.0030.00618.10
8.2.40.0000.00922.15
8.2.30.0070.00020.89
8.2.20.0080.00017.87
8.2.10.0000.00717.95
8.2.00.0040.00417.86
8.1.280.0140.00325.92
8.1.270.0050.00323.88
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00422.53
8.1.230.0080.00319.12
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.22
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0000.00819.03
8.1.150.0050.00320.61
8.1.140.0000.00819.52
8.1.130.0070.00018.70
8.1.120.0040.00417.27
8.1.110.0040.00417.41
8.1.100.0000.00817.42
8.1.90.0000.00817.41
8.1.80.0000.00717.39
8.1.70.0000.00717.33
8.1.60.0080.00017.51
8.1.50.0080.00017.46
8.1.40.0030.00617.41
8.1.30.0000.00817.47
8.1.20.0040.00417.48
8.1.10.0070.00017.48
8.1.00.0000.00717.29
8.0.300.0080.00018.77
8.0.290.0030.00616.63
8.0.280.0040.00418.27
8.0.270.0030.00317.18
8.0.260.0000.00816.62
8.0.250.0030.00316.89
8.0.240.0000.00816.80
8.0.230.0070.00016.85
8.0.220.0000.00716.65
8.0.210.0000.00716.71
8.0.200.0000.00616.79
8.0.190.0040.00816.84
8.0.180.0000.00716.88
8.0.170.0070.00016.84
8.0.160.0040.00416.84
8.0.150.0000.00716.86
8.0.140.0030.00616.67
8.0.130.0030.00313.23
8.0.120.0040.00416.73
8.0.110.0040.00416.80
8.0.100.0000.00816.61
8.0.90.0000.00716.75
8.0.80.0190.00316.68
8.0.70.0050.00316.87
8.0.60.0070.00016.70
8.0.50.0070.00016.76
8.0.30.0120.00717.01
8.0.20.0110.00917.40
8.0.10.0070.00016.80
8.0.00.0140.00416.70
7.4.330.0050.00015.55
7.4.320.0030.00316.48
7.4.300.0030.00316.41
7.4.290.0070.00016.45
7.4.280.0080.00016.56
7.4.270.0050.00316.41
7.4.260.0030.00313.19
7.4.250.0040.00416.48
7.4.240.0040.00416.45
7.4.230.0060.00016.40
7.4.220.0170.01016.50
7.4.210.0080.01016.49
7.4.200.0000.00716.40
7.4.160.0080.01016.28
7.4.150.0120.00917.40
7.4.140.0080.01217.86
7.4.130.0190.00016.43
7.4.120.0090.00916.35
7.4.110.0040.01216.49
7.4.100.0060.01216.48
7.4.90.0130.01316.19
7.4.80.0110.01119.39
7.4.70.0140.00316.43
7.4.60.0150.00316.59
7.4.50.0060.00816.45
7.4.40.0060.01316.54
7.4.30.0060.01716.39
7.4.00.0050.01314.82
7.3.330.0000.00513.18
7.3.320.0030.00313.03
7.3.310.0040.00416.05
7.3.300.0040.00416.05
7.3.290.0070.00016.04
7.3.280.0060.01016.15
7.3.270.0100.00617.40
7.3.260.0130.01016.09
7.3.250.0110.00716.24
7.3.240.0080.01116.23
7.3.230.0140.00316.19
7.3.210.0070.01016.16
7.3.200.0080.00916.35
7.3.190.0130.00316.16
7.3.180.0170.00616.10
7.3.170.0060.01216.22
7.3.160.0060.01016.28
7.3.120.0080.00914.67
7.3.110.0060.01114.64
7.3.100.0100.00214.68
7.3.90.0050.00914.63
7.3.80.0070.01014.74
7.3.70.0050.00814.39
7.3.60.0090.00514.67
7.3.50.0080.00814.67
7.3.40.0040.00914.65
7.3.30.0070.00614.73
7.3.20.0030.01016.67
7.3.10.0050.00816.55
7.3.00.0090.00716.43
7.2.330.0040.01916.49
7.2.320.0120.00616.62
7.2.310.0110.00716.41
7.2.300.0060.01216.38
7.2.290.0090.00916.63
7.2.250.0060.01314.86
7.2.240.0110.00814.88
7.2.230.0080.00614.71
7.2.220.0040.00814.88
7.2.210.0040.01014.99
7.2.200.0080.00614.79
7.2.190.0070.00714.94
7.2.180.0080.00314.89
7.2.170.0050.00814.81
7.2.60.0040.01116.58
7.2.00.0040.00819.28
7.1.330.0050.01115.71
7.1.320.0090.00715.62
7.1.310.0070.00615.86
7.1.300.0070.00515.67
7.1.290.0050.00715.63
7.1.280.0030.01015.81
7.1.270.0040.00615.70
7.1.260.0080.00715.78
7.1.200.0030.01015.59
7.1.100.0070.01417.67
7.1.70.0000.00916.74
7.1.60.0470.01733.24
7.1.50.0400.01032.71
7.1.40.0400.00732.39
7.1.30.0300.02032.57
7.1.20.0370.01332.81
7.1.10.0300.00714.86
7.1.00.0230.01014.54
7.0.200.0100.00314.82
7.0.190.0100.00714.79
7.0.180.0270.01014.29
7.0.170.0200.01314.29
7.0.160.0200.01314.40
7.0.150.0270.00714.40
7.0.140.0300.01014.29
7.0.130.0200.01314.53
7.0.120.0200.01314.61
7.0.110.0330.00014.16
7.0.100.0230.01014.30
7.0.90.0200.01314.45
7.0.80.0300.00714.38
7.0.70.0370.00314.47
7.0.60.0270.00714.32
7.0.50.0330.00314.39
7.0.40.0430.00714.50
7.0.30.0370.00014.52
7.0.20.0770.01314.76
7.0.10.0270.00714.45
7.0.00.0270.01314.61

preferences:
45.43 ms | 400 KiB | 5 Q