3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pf = array( 'a' => 1, 'b' => 2 ); print_r( $pf); class tst { public $aa = 1; public $bb = 2; } $cvar = new tst; print_r($cvar); print_r($cvar->aa); ?>

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.27
8.3.50.0080.00821.99
8.3.40.0130.00718.75
8.3.30.0110.00718.42
8.3.20.0040.00418.43
8.3.10.0080.00820.92
8.3.00.0000.00823.58
8.2.180.0070.00716.50
8.2.170.0040.01122.96
8.2.160.0110.00420.36
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00421.25
8.2.110.0090.00920.56
8.2.100.0090.00317.66
8.2.90.0000.00919.09
8.2.80.0040.00417.97
8.2.70.0070.00317.63
8.2.60.0060.00317.92
8.2.50.0040.00418.07
8.2.40.0000.00918.28
8.2.30.0060.00319.30
8.2.20.0040.00417.59
8.2.10.0020.00517.56
8.2.00.0030.00517.59
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0140.00322.48
8.1.230.0090.00320.77
8.1.220.0080.00018.77
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0060.00317.53
8.1.180.0060.00318.10
8.1.170.0000.00818.39
8.1.160.0030.00718.73
8.1.150.0080.00018.44
8.1.140.0050.00317.44
8.1.130.0070.00017.92
8.1.120.0040.00317.38
8.1.110.0040.00417.39
8.1.100.0070.00017.45
8.1.90.0000.00817.34
8.1.80.0000.00717.25
8.1.70.0000.00817.29
8.1.60.0050.00517.48
8.1.50.0080.00017.44
8.1.40.0000.00817.43
8.1.30.0040.00417.57
8.1.20.0060.00317.42
8.1.10.0030.00517.45
8.1.00.0070.00317.41
8.0.300.0040.00419.87
8.0.290.0040.00417.18
8.0.280.0040.00418.28
8.0.270.0040.00417.29
8.0.260.0030.00316.73
8.0.250.0000.00816.91
8.0.240.0000.00916.83
8.0.230.0070.00016.92
8.0.220.0080.00016.84
8.0.210.0030.00316.82
8.0.200.0030.00316.77
8.0.190.0040.00416.75
8.0.180.0000.00716.88
8.0.170.0080.00016.75
8.0.160.0000.00716.73
8.0.150.0040.00416.75
8.0.140.0000.00716.67
8.0.130.0030.00313.23
8.0.120.0000.00816.79
8.0.110.0040.00416.81
8.0.100.0040.00416.59
8.0.90.0030.00516.76
8.0.80.0060.00916.79
8.0.70.0000.00816.75
8.0.60.0000.00716.82
8.0.50.0020.00516.70
8.0.30.0120.00616.86
8.0.20.0100.01317.40
8.0.10.0040.00416.93
8.0.00.0060.01116.70
7.4.330.0020.00216.67
7.4.320.0000.00716.45
7.4.300.0030.00316.38
7.4.290.0030.00316.38
7.4.280.0040.00416.39
7.4.270.0090.00016.52
7.4.260.0000.00613.22
7.4.250.0030.00616.28
7.4.240.0030.00316.45
7.4.230.0040.00416.53
7.4.220.0150.00316.39
7.4.210.0080.00716.48
7.4.200.0030.00316.61
7.4.190.0000.00716.33
7.4.160.0080.00816.42
7.4.150.0060.01217.40
7.4.140.0110.01117.86
7.4.130.0130.00616.35
7.4.120.0060.01016.49
7.4.110.0000.01616.39
7.4.100.0190.00016.25
7.4.90.0090.00916.41
7.4.80.0040.01319.39
7.4.70.0160.00016.38
7.4.60.0120.00616.48
7.4.50.0080.00016.48
7.4.40.0120.00622.77
7.4.30.0080.00816.57
7.4.00.0060.00614.93
7.3.330.0000.00513.00
7.3.320.0030.00313.18
7.3.310.0000.00816.04
7.3.300.0030.00316.21
7.3.290.0090.00616.18
7.3.280.0090.00816.13
7.3.270.0110.00717.40
7.3.260.0080.00918.24
7.3.250.0090.01116.33
7.3.240.0070.01016.17
7.3.230.0030.01316.39
7.3.210.0140.00316.26
7.3.200.0130.00319.39
7.3.190.0080.00816.50
7.3.180.0060.00916.23
7.3.170.0070.01016.29
7.3.160.0130.00316.36
7.3.120.0030.01014.51
7.2.330.0150.00616.30
7.2.320.0140.00616.37
7.2.310.0040.01216.69
7.2.300.0030.01716.68
7.2.290.0070.01316.70
7.1.200.0080.00415.48
7.1.70.0000.00717.04
7.1.60.0040.00717.26
7.1.50.0000.01416.68
7.1.40.0000.01416.26
7.1.30.0040.00816.39
7.1.20.0060.00616.63
7.1.10.0000.00816.66
7.1.00.0080.00416.72
7.0.200.0030.00716.46
7.0.190.0030.00616.79
7.0.180.0000.01116.39
7.0.170.0080.00316.21
7.0.160.0040.00416.27
7.0.150.0030.00616.30
7.0.140.0060.01016.37
7.0.130.0030.00516.42
7.0.120.0040.00416.59
7.0.110.0050.00516.30
7.0.100.0060.00316.27
7.0.90.0000.00716.40
7.0.80.0000.00716.38
7.0.70.0030.00616.30
7.0.60.0000.00716.21
7.0.50.0060.00316.28
7.0.40.0040.00416.16
7.0.30.0040.00716.16
7.0.20.0090.00316.16
7.0.10.0070.00716.16
7.0.00.0040.00416.16
5.6.300.0070.03720.86
5.6.290.0000.04420.65
5.6.280.0100.04121.04
5.6.270.0030.04320.90
5.6.260.0070.05120.79
5.6.250.0030.04020.90
5.6.240.0160.04620.78
5.6.230.0070.04720.90
5.6.220.0100.03720.88
5.6.210.0030.04020.95
5.6.200.0000.04420.72
5.6.190.0070.06320.89
5.6.180.0070.08820.90
5.6.170.0030.04420.97
5.6.160.0070.04120.97
5.6.150.0030.04520.97
5.6.140.0030.04420.85
5.6.130.0000.04420.97
5.6.120.0100.04520.93
5.6.110.0030.04720.90
5.6.100.0000.05420.72
5.6.90.0070.04720.80
5.6.80.0030.04720.20
5.6.70.0070.04620.23
5.6.60.0000.04120.29
5.6.50.0000.04520.24
5.6.40.0000.04520.25
5.6.30.0090.03520.18
5.6.20.0040.04220.14
5.6.10.0100.04320.30
5.6.00.0030.03720.22
5.5.380.0030.04217.45
5.5.370.0030.04917.58
5.5.360.0030.04217.49
5.5.350.0000.05117.33
5.5.340.0090.05318.07
5.5.330.0030.04018.11
5.5.320.0000.08917.95
5.5.310.0130.06318.07
5.5.300.0060.04118.03
5.5.290.0100.04517.68
5.5.280.0030.04417.68
5.5.270.0030.04618.10
5.5.260.0070.04317.98
5.5.250.0070.03617.93
5.5.240.0070.04117.46
5.5.230.0100.04017.45
5.5.220.0070.05417.44
5.5.210.0140.05617.49
5.5.200.0000.04617.30
5.5.190.0000.05217.42
5.5.180.0000.04617.31
5.5.160.0180.03817.45
5.5.150.0040.03917.11
5.5.140.0140.04917.33
5.5.130.0030.03917.26
5.5.120.0000.05317.30
5.5.110.0100.03317.30
5.5.100.0070.04017.23
5.5.90.0030.04517.32
5.5.80.0000.04217.02
5.5.70.0000.04917.00
5.5.60.0000.04617.34
5.5.50.0000.04117.22
5.5.40.0000.04417.25
5.5.30.0060.04417.35
5.5.20.0100.03217.21
5.5.10.0070.04217.31
5.5.00.0030.04217.26
5.4.450.0090.04419.17
5.4.440.0120.03419.34
5.4.430.0030.04119.41
5.4.420.0070.04019.36
5.4.410.0090.04519.25
5.4.400.0030.04618.92
5.4.390.0030.04219.00
5.4.380.0000.05719.00
5.4.370.0030.04018.86
5.4.360.0210.05219.00
5.4.350.0030.03619.05
5.4.340.0000.04218.83
5.4.320.0100.03419.14
5.4.310.0070.04819.00
5.4.300.0000.04419.14
5.4.290.0090.05918.86
5.4.280.0030.03819.04
5.4.270.0000.04018.85
5.4.260.0170.04819.08
5.4.250.0030.04819.20
5.4.240.0090.04019.18
5.4.230.0070.04418.90
5.4.220.0030.04318.82
5.4.210.0030.04219.05
5.4.200.0100.03819.13
5.4.190.0030.03918.90
5.4.180.0060.04119.04
5.4.170.0070.03818.82
5.4.160.0130.03018.98
5.4.150.0000.04318.98
5.4.140.0090.03416.48
5.4.130.0030.04116.60
5.4.120.0030.03616.32
5.4.110.0060.03716.73
5.4.100.0000.03816.73
5.4.90.0350.03116.57
5.4.80.0000.03816.65
5.4.70.0000.04216.61
5.4.60.0030.03816.39
5.4.50.0000.04216.60
5.4.40.0030.04216.44
5.4.30.0090.03016.63
5.4.20.0090.04016.64
5.4.10.0000.04516.51
5.4.00.0100.03716.16
5.3.290.0030.04116.16
5.3.280.0030.03816.16
5.3.270.0040.03916.16
5.3.260.0040.04316.16
5.3.250.0030.03816.16
5.3.240.0090.03116.16
5.3.230.0000.04616.16
5.3.220.0030.04516.16
5.3.210.0100.03016.16
5.3.200.0030.03816.16
5.3.190.0060.03516.16
5.3.180.0000.04416.16
5.3.170.0060.04116.16
5.3.160.0040.03616.16
5.3.150.0090.04416.16
5.3.140.0280.03816.16
5.3.130.0240.04116.16
5.3.120.0000.05016.16
5.3.110.0030.03616.16
5.3.100.0070.03816.16
5.3.90.0070.03416.16
5.3.80.0030.03416.16
5.3.70.0000.04016.16
5.3.60.0040.03616.16
5.3.50.0000.03816.16
5.3.40.0070.03416.16
5.3.30.0100.02716.16
5.3.20.0060.03216.16
5.3.10.0030.03716.16
5.3.00.0030.03816.16
5.2.170.0060.03716.16
5.2.160.0030.03216.16
5.2.150.0070.02516.16
5.2.140.0030.03816.16
5.2.130.0030.03016.16
5.2.120.0040.02816.16
5.2.110.0030.03016.16
5.2.100.0040.02916.16
5.2.90.0100.02416.16
5.2.80.0100.03516.16
5.2.70.0060.02816.16
5.2.60.0040.02916.16
5.2.50.0030.03616.16
5.2.40.0030.03416.16
5.2.30.0000.03616.16
5.2.20.0030.03016.16
5.2.10.0090.02616.16
5.2.00.0070.03116.16
5.1.60.0070.02316.16
5.1.50.0110.02516.16
5.1.40.0030.03116.16
5.1.30.0030.02716.16
5.1.20.0280.01816.16
5.1.10.0030.02616.16
5.1.00.0060.02516.16
5.0.50.0060.02016.16
5.0.40.0000.02616.16
5.0.30.0000.03316.16
5.0.20.0030.02216.16
5.0.10.0000.02216.16
5.0.00.0060.02816.16
4.4.90.0030.01516.16
4.4.80.0040.01416.16
4.4.70.0000.01616.16
4.4.60.0000.01816.16
4.4.50.0000.02016.16
4.4.40.0030.02416.16
4.4.30.0000.01816.16
4.4.20.0000.02316.16
4.4.10.0000.02216.16
4.4.00.0060.02216.16
4.3.110.0080.01016.16
4.3.100.0050.01116.16
4.3.90.0030.01616.16
4.3.80.0060.02316.16
4.3.70.0030.01516.16
4.3.60.0030.01316.16
4.3.50.0000.02016.16
4.3.40.0000.03216.16
4.3.30.0000.02316.16
4.3.20.0000.02316.16
4.3.10.0030.01616.16
4.3.00.0000.01616.16

preferences:
55.39 ms | 400 KiB | 5 Q