3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public $test = ['foo' => 'bar']; }; $my = new MyClass(); $test = var_export($my, true); var_dump($test);

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.0110.00418.43
8.3.50.0090.00616.31
8.3.40.0120.00318.61
8.3.30.0070.00718.49
8.3.20.0070.00023.53
8.3.10.0030.00623.70
8.3.00.0040.00417.68
8.2.180.0070.00718.50
8.2.170.0070.00722.96
8.2.160.0120.00322.19
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00820.94
8.2.110.0060.00319.22
8.2.100.0090.00317.78
8.2.90.0050.00319.09
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0000.00818.03
8.2.50.0050.00218.10
8.2.40.0040.00420.45
8.2.30.0070.00019.07
8.2.20.0000.00717.86
8.2.10.0000.00717.86
8.2.00.0050.00317.91
8.1.280.0140.00425.92
8.1.270.0040.00423.75
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00621.18
8.1.230.0040.00719.21
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0030.00517.09
8.1.180.0000.00818.10
8.1.170.0090.00018.65
8.1.160.0080.00018.86
8.1.150.0020.00519.98
8.1.140.0000.00719.62
8.1.130.0070.00018.81
8.1.120.0030.00617.42
8.1.110.0060.00317.37
8.1.100.0040.00417.36
8.1.90.0000.00817.29
8.1.80.0000.00817.37
8.1.70.0030.00317.39
8.1.60.0050.00317.43
8.1.50.0040.00417.48
8.1.40.0000.00717.41
8.1.30.0050.00317.55
8.1.20.0080.00017.51
8.1.10.0040.00417.38
8.1.00.0000.00717.50
8.0.300.0070.00019.99
8.0.290.0070.00016.75
8.0.280.0000.00718.36
8.0.270.0030.00317.10
8.0.260.0030.00316.66
8.0.250.0040.00216.91
8.0.240.0050.00316.83
8.0.230.0060.00416.94
8.0.220.0000.00816.77
8.0.210.0040.00416.90
8.0.200.0040.00416.75
8.0.190.0000.00816.85
8.0.180.0000.00716.88
8.0.170.0000.00716.86
8.0.160.0040.00416.85
8.0.150.0000.00716.70
8.0.140.0000.00716.66
8.0.130.0030.00313.26
8.0.120.0020.00516.66
8.0.110.0040.00416.86
8.0.100.0000.00716.92
8.0.90.0040.00416.73
8.0.80.0030.01316.77
8.0.70.0040.00416.79
8.0.60.0040.00416.69
8.0.50.0030.00516.70
8.0.30.0080.01117.13
8.0.20.0130.00817.40
8.0.10.0070.00017.05
8.0.00.0120.00816.74
7.4.330.0000.00515.55
7.4.320.0020.00516.39
7.4.300.0060.00016.44
7.4.290.0040.00416.53
7.4.280.0040.00416.34
7.4.270.0000.01016.52
7.4.260.0000.00613.22
7.4.250.0000.00816.49
7.4.240.0030.00316.40
7.4.230.0000.00716.50
7.4.220.0120.00616.54
7.4.210.0150.00316.60
7.4.200.0000.00716.23
7.4.160.0040.01216.47
7.4.150.0130.00717.40
7.4.140.0110.00617.86
7.4.130.0120.00916.41
7.4.120.0090.01016.30
7.4.110.0040.01216.39
7.4.100.0060.01216.19
7.4.90.0100.01016.29
7.4.80.0060.01019.39
7.4.70.0180.00016.49
7.4.60.0070.01016.26
7.4.50.0120.00316.21
7.4.40.0110.00616.39
7.4.30.0110.00716.27
7.4.00.0070.01015.06
7.3.330.0050.00012.99
7.3.320.0020.00213.04
7.3.310.0040.00416.16
7.3.300.0030.00316.16
7.3.290.0070.00816.15
7.3.280.0070.01016.16
7.3.270.0180.00617.40
7.3.260.0070.00916.15
7.3.250.0140.01016.36
7.3.240.0100.00916.30
7.3.230.0160.00016.23
7.3.210.0060.01016.23
7.3.200.0090.00816.46
7.3.190.0130.00316.22
7.3.180.0130.00316.48
7.3.170.0130.00316.16
7.3.160.0120.00316.38
7.3.120.0030.01417.15
7.3.110.0040.01117.15
7.3.100.0030.01317.15
7.3.90.0040.01117.15
7.3.80.0030.00717.15
7.3.70.0100.00317.15
7.3.60.0080.00817.15
7.3.50.0100.00017.15
7.3.40.0090.00317.15
7.3.30.0080.00317.15
7.3.20.0070.00417.15
7.3.10.0070.01017.15
7.3.00.0070.01117.15
7.2.330.0060.01216.63
7.2.320.0070.01016.55
7.2.310.0060.01116.39
7.2.300.0030.01316.27
7.2.290.0110.00816.61
7.2.240.0090.00017.15
7.2.230.0130.00317.15
7.2.220.0090.00617.15
7.2.210.0070.00717.15
7.2.200.0090.00617.15
7.2.190.0090.00617.15
7.2.180.0060.01217.15
7.2.170.0030.01017.15
7.2.160.0060.00917.15
7.2.150.0040.01217.15
7.2.140.0060.00617.15
7.2.130.0060.01017.15
7.2.120.0070.00717.15
7.2.110.0030.00817.15
7.2.100.0100.00717.15
7.2.90.0080.00817.15
7.2.80.0080.00817.15
7.2.70.0100.00717.15
7.2.60.0070.00717.00
7.2.50.0080.01116.89
7.2.40.0080.00617.15
7.2.30.0090.00617.15
7.2.20.0060.00917.15
7.2.10.0060.00917.15
7.2.00.0070.00718.19
7.1.330.0030.01317.15
7.1.320.0030.00917.15
7.1.310.0070.00717.15
7.1.300.0080.00817.15
7.1.290.0090.00617.15
7.1.280.0130.00317.15
7.1.270.0100.00317.15
7.1.260.0080.00817.15
7.1.250.0060.00917.15
7.1.200.0040.00815.75
7.1.70.0030.00916.89
7.1.60.0630.01033.20
7.1.50.0600.01332.96
7.1.40.0900.02032.47
7.1.30.0570.01332.56
7.1.20.0430.01732.61
7.1.10.0570.01014.56
7.1.00.0330.01315.01
7.0.200.0330.00314.77
7.0.190.0270.01314.88
7.0.180.0430.01314.22
7.0.170.0430.01014.29
7.0.160.0430.01014.38
7.0.150.0670.00714.32
7.0.140.0430.01714.41
7.0.130.0330.01014.65
7.0.120.0330.01014.73
7.0.110.0330.00714.58
7.0.100.0300.01714.45
7.0.90.0530.00714.53
7.0.80.0300.01714.48
7.0.70.0500.01014.62
7.0.60.0300.01314.16
7.0.50.0300.01314.38
7.0.40.0330.00714.77
7.0.30.0330.01314.64
7.0.20.0470.01014.57
7.0.10.0470.01314.41
7.0.00.0630.00314.55

preferences:
54.17 ms | 400 KiB | 5 Q