3v4l.org

run code in 300+ PHP versions simultaneously
<?php class getData { public $myArray = array(); function __construct() { array_push($this->myArray,"cat"); array_push($sths->myArray,"dog"); } } $p = new getData(); var_dump($p->myArray);

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.0130.00618.43
8.3.50.0110.00621.99
8.3.40.0110.00418.97
8.3.30.0070.00719.04
8.3.20.0040.00420.16
8.3.10.0030.00622.10
8.3.00.0050.00322.40
8.2.180.0160.00716.75
8.2.170.0040.01122.96
8.2.160.0030.01020.75
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0120.00619.36
8.2.110.0090.00022.25
8.2.100.0080.00320.54
8.2.90.0080.00017.50
8.2.80.0060.00317.97
8.2.70.0040.00417.80
8.2.60.0090.00417.64
8.2.50.0070.00318.10
8.2.40.0060.00318.16
8.2.30.0070.00018.00
8.2.20.0070.00017.59
8.2.10.0040.00419.53
8.2.00.0040.00417.68
8.1.280.0200.00025.92
8.1.270.0080.00022.15
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00723.82
8.1.230.0040.00719.17
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0000.00917.22
8.1.180.0030.00618.10
8.1.170.0030.00618.37
8.1.160.0000.00721.96
8.1.150.0000.00718.52
8.1.140.0080.00017.33
8.1.130.0000.00717.73
8.1.120.0050.00317.34
8.1.110.0070.00017.36
8.1.100.0030.00317.24
8.1.90.0040.00417.23
8.1.80.0000.00717.22
8.1.70.0030.00317.33
8.1.60.0060.00317.51
8.1.50.0030.00617.53
8.1.40.0020.00517.50
8.1.30.0000.00817.41
8.1.20.0080.00017.59
8.1.10.0040.00417.51
8.1.00.0050.00217.32
8.0.300.0040.00419.77
8.0.290.0030.00616.75
8.0.280.0050.00218.43
8.0.270.0070.00017.12
8.0.260.0030.00316.69
8.0.250.0030.00316.93
8.0.240.0070.00016.86
8.0.230.0040.00416.93
8.0.220.0000.00716.88
8.0.210.0050.00216.90
8.0.200.0070.00016.93
8.0.190.0000.00716.94
8.0.180.0040.00416.83
8.0.170.0000.00716.97
8.0.160.0040.00416.77
8.0.150.0070.00016.86
8.0.140.0000.00916.69
8.0.130.0000.00613.37
8.0.120.0070.00016.88
8.0.110.0040.00416.93
8.0.100.0000.00716.75
8.0.90.0030.00516.69
8.0.80.0040.01116.88
8.0.70.0070.00016.91
8.0.60.0040.00416.68
8.0.50.0050.00317.01
8.0.30.0160.00617.05
8.0.20.0070.01217.41
8.0.10.0040.00416.99
8.0.00.0120.00716.67
7.4.330.0000.00615.00
7.4.320.0060.00016.52
7.4.300.0060.00016.65
7.4.290.0030.00316.52
7.4.280.0000.00816.61
7.4.270.0030.00316.69
7.4.260.0000.01016.48
7.4.250.0040.00416.49
7.4.240.0050.00216.58
7.4.230.0000.00716.49
7.4.220.0150.00316.63
7.4.210.0070.00716.56
7.4.200.0070.00016.42
7.4.190.0050.00216.42
7.4.160.0100.00716.51
7.4.150.0110.00717.40
7.4.140.0090.00917.86
7.4.130.0060.01316.60
7.4.120.0090.01116.43
7.4.110.0100.00716.51
7.4.100.0060.01216.46
7.4.90.0150.01216.46
7.4.80.0130.00519.39
7.4.70.0070.01116.60
7.4.60.0060.01116.45
7.4.50.0000.00916.45
7.4.40.0040.01522.77
7.4.30.0090.00916.60
7.4.00.0060.01014.90
7.3.330.0050.00013.34
7.3.320.0030.00313.44
7.3.310.0060.00016.39
7.3.300.0040.00416.24
7.3.290.0130.00316.36
7.3.280.0060.01016.38
7.3.270.0100.01317.40
7.3.260.0130.00316.32
7.3.250.0080.00916.46
7.3.240.0080.00816.58
7.3.230.0060.01116.54
7.3.210.0100.00716.25
7.3.200.0090.01219.39
7.3.190.0120.00616.56
7.3.180.0060.01516.43
7.3.170.0060.00916.40
7.3.160.0080.00816.34
7.3.120.0050.01114.71
7.3.110.0100.00614.70
7.3.100.0000.01914.65
7.3.90.0090.00914.85
7.3.80.0040.01514.92
7.3.70.0030.00614.76
7.3.60.0090.00614.63
7.3.50.0000.01114.74
7.3.40.0070.00714.82
7.3.30.0000.01114.48
7.3.20.0070.00716.73
7.3.10.0060.00616.40
7.3.00.0000.00916.56
7.2.330.0070.01016.65
7.2.320.0120.00916.45
7.2.310.0160.00316.71
7.2.300.0080.00916.69
7.2.290.0030.01416.70
7.2.250.0070.01114.57
7.2.240.0070.01115.00
7.2.230.0040.01114.67
7.2.220.0060.00915.02
7.2.210.0060.01314.79
7.2.200.0060.00615.06
7.2.190.0000.01215.00
7.2.180.0100.00614.95
7.2.170.0090.00615.09
7.2.160.0060.00614.97
7.2.150.0070.00716.83
7.2.140.0040.01016.72
7.2.130.0060.00616.99
7.2.120.0070.00716.84
7.2.110.0070.00716.83
7.2.100.0040.01116.70
7.2.90.0100.00717.01
7.2.80.0030.00716.71
7.2.70.0070.00717.09
7.2.60.0070.00516.86
7.2.50.0000.01316.60
7.2.40.0090.00616.85
7.2.30.0030.01016.73
7.2.20.0080.00417.03
7.2.10.0030.01416.55
7.2.00.0020.01318.19
7.1.330.0140.00415.59
7.1.320.0070.01415.80
7.1.310.0070.01015.72
7.1.300.0040.01115.45
7.1.290.0000.01715.52
7.1.280.0060.00615.60
7.1.270.0110.00315.73
7.1.260.0070.00415.78
7.1.250.0070.00315.64
7.1.240.0070.00715.83
7.1.230.0080.00415.79
7.1.220.0040.01115.77
7.1.210.0030.00915.89
7.1.200.0020.01015.63
7.1.190.0060.00615.59
7.1.180.0060.00615.57
7.1.170.0000.00815.58
7.1.160.0040.01115.74
7.1.150.0040.00415.67
7.1.140.0120.00315.66
7.1.130.0040.01115.89
7.1.120.0030.00615.75
7.1.110.0070.00315.77
7.1.100.0060.00517.08
7.1.90.0040.01115.93
7.1.80.0100.00715.82
7.1.70.0070.00516.39
7.1.60.0060.01117.81
7.1.50.0030.01516.38
7.1.40.0070.01115.91
7.1.30.0100.00715.68
7.1.20.0070.00715.82
7.1.10.0060.00315.56
7.1.00.0020.04119.04
7.0.330.0030.00715.30
7.0.320.0000.01115.18
7.0.310.0070.00715.08
7.0.300.0000.00915.52
7.0.290.0070.00715.13
7.0.280.0060.00315.38
7.0.270.0070.00715.39
7.0.260.0030.01315.35
7.0.250.0030.00915.38
7.0.240.0130.00015.47
7.0.230.0040.01115.56
7.0.220.0060.00315.52
7.0.210.0030.01015.34
7.0.200.0000.01015.95
7.0.190.0060.00615.58
7.0.180.0070.00715.53
7.0.170.0030.01015.52
7.0.160.0030.01015.32
7.0.150.0060.00315.40
7.0.140.0050.02718.70
7.0.130.0080.00615.39
7.0.120.0110.00415.49
7.0.110.0060.00615.26
7.0.100.0080.04017.83
7.0.90.0020.03217.72
7.0.80.0080.04317.71
7.0.70.0140.02517.74
7.0.60.0080.03517.64
7.0.50.0040.03917.91
7.0.40.0080.03516.78
7.0.30.0050.02316.65
7.0.20.0040.04916.73
7.0.10.0060.03816.58
7.0.00.0050.04016.84
5.6.400.0050.00514.32
5.6.390.0070.00714.35
5.6.380.0100.00314.41
5.6.370.0040.00414.41
5.6.360.0000.01114.51
5.6.350.0090.00614.72
5.6.340.0030.00714.51
5.6.330.0030.01014.03
5.6.320.0060.00914.21
5.6.310.0120.00314.23
5.6.300.0090.00014.69
5.6.290.0030.01014.06
5.6.280.0050.03817.47
5.6.270.0030.01014.52
5.6.260.0060.00914.41
5.6.250.0050.03917.47
5.6.240.0110.04517.66
5.6.230.0030.04517.57
5.6.220.0090.02717.44
5.6.210.0120.02217.30
5.6.200.0100.03717.74
5.6.190.0020.04817.78
5.6.180.0080.04217.71
5.6.170.0020.03017.61
5.6.160.0060.03417.67
5.6.150.0070.03217.55
5.6.140.0030.05017.59
5.6.130.0130.04117.75
5.6.120.0110.04117.68
5.6.110.0100.03917.60
5.6.100.0080.04617.67
5.6.90.0090.03017.58
5.6.80.0080.03517.20
5.6.70.0030.02517.15
5.6.60.0030.02617.47
5.6.50.0040.02317.27
5.6.40.0020.02817.18
5.6.30.0090.02117.34
5.6.20.0070.02217.44
5.6.10.0040.02817.35
5.6.00.0040.02517.31
5.5.380.0070.04617.41
5.5.370.0100.04017.51
5.5.360.0070.03917.28
5.5.350.0060.04517.39
5.5.340.0050.03917.64
5.5.330.0100.04017.49
5.5.320.0030.04917.52
5.5.310.0030.02717.53
5.5.300.0050.02617.53
5.5.290.0030.04317.43
5.5.280.0090.02017.58
5.5.270.0100.04317.66
5.5.260.0020.03617.55
5.5.250.0080.04517.31
5.5.240.0070.02517.05
5.5.230.0060.02517.25
5.5.220.0060.02317.29
5.5.210.0050.02617.21
5.5.200.0100.02217.12
5.5.190.0020.02917.11
5.5.180.0060.02117.22
5.5.170.0070.00714.30
5.5.160.0080.03717.07
5.5.150.0100.03317.10
5.5.140.0030.02617.22
5.5.130.0050.04717.21
5.5.120.0070.03117.01
5.5.110.0030.02617.06
5.5.100.0060.02017.10
5.5.90.0030.02317.27
5.5.80.0050.02317.19
5.5.70.0020.02717.16
5.5.60.0020.02817.10
5.5.50.0020.04617.15
5.5.40.0080.02216.96
5.5.30.0030.02817.05
5.5.20.0070.02217.04
5.5.10.0080.02217.08
5.5.00.0030.02817.02
5.4.450.0030.03115.17
5.4.440.0080.02215.09
5.4.430.0030.04315.16
5.4.420.0050.04315.26
5.4.410.0120.03615.16
5.4.400.0030.03515.05
5.4.390.0060.02214.93
5.4.380.0070.01815.08
5.4.370.0020.02615.10
5.4.360.0060.02315.01
5.4.350.0050.02315.01
5.4.340.0030.02315.19
5.4.330.0060.01010.98
5.4.320.0060.02015.07
5.4.310.0060.04314.91
5.4.300.0050.02515.07
5.4.290.0050.02115.01
5.4.280.0040.04014.91
5.4.270.0080.02815.01
5.4.260.0060.02015.10
5.4.250.0050.03015.16
5.4.240.0050.02014.92
5.4.230.0050.01814.91
5.4.220.0030.02314.95
5.4.210.0030.02314.99
5.4.200.0070.02014.99
5.4.190.0080.01714.94
5.4.180.0020.02415.02
5.4.170.0000.02415.06
5.4.160.0030.02414.95
5.4.150.0000.02514.97
5.4.140.0020.02413.69
5.4.130.0030.02013.69
5.4.120.0060.02013.73
5.4.110.0030.01813.65
5.4.100.0070.01813.68
5.4.90.0020.02013.69
5.4.80.0080.01713.77
5.4.70.0030.01813.67
5.4.60.0000.02413.71
5.4.50.0030.02113.71
5.4.40.0030.02213.67
5.4.30.0020.01813.61
5.4.20.0060.01813.73
5.4.10.0050.02113.78
5.4.00.0050.03313.52
5.3.290.0000.02512.78
5.3.280.0030.02012.75
5.3.270.0050.02312.86
5.3.260.0000.02412.84
5.3.250.0050.02012.77
5.3.240.0020.02212.82
5.3.230.0070.01712.81
5.3.220.0030.02212.78
5.3.210.0020.02212.75
5.3.200.0080.01612.79
5.3.190.0080.01712.73
5.3.180.0050.02112.76
5.3.170.0030.02912.76
5.3.160.0030.01712.74
5.3.150.0030.02312.84
5.3.140.0070.01812.75
5.3.130.0050.02212.76
5.3.120.0020.02012.81
5.3.110.0040.02212.79
5.3.100.0040.02012.50
5.3.90.0000.02812.51
5.3.80.0080.02012.49
5.3.70.0010.02412.44
5.3.60.0050.02012.53
5.3.50.0050.03512.41
5.3.40.0060.03512.52
5.3.30.0020.04312.47
5.3.20.0060.02812.28
5.3.10.0040.03812.37
5.3.00.0050.03912.32
5.2.170.0070.06312.65
5.2.160.0000.03312.65
5.2.150.0070.05012.65
5.2.140.0030.03012.65
5.2.130.0030.06312.65
5.2.120.0030.04012.65
5.2.110.0030.06012.65
5.2.100.0030.03712.65
5.2.90.0070.05312.65
5.2.80.0070.04012.65
5.2.70.0000.03012.65
5.2.60.0070.05712.65
5.2.50.0070.06312.65
5.2.40.0000.05312.65
5.2.30.0000.06312.65
5.2.20.0070.03012.65
5.2.10.0100.05012.65
5.2.00.0100.06012.65
5.1.60.0030.03312.65
5.1.50.0100.05012.65
5.1.40.0070.03712.65
5.1.30.0070.05712.65
5.1.20.0000.05012.65
5.1.10.0030.05312.65
5.1.00.0070.05012.65
5.0.50.0000.04712.65
5.0.40.0030.03712.65
5.0.30.0030.03312.65
5.0.20.0030.04012.65
5.0.10.0000.04012.65
5.0.00.0030.06312.65
4.4.90.0030.02312.65
4.4.80.0000.03712.65
4.4.70.0000.03312.65
4.4.60.0000.03312.65
4.4.50.0030.03712.65
4.4.40.0000.05312.65
4.4.30.0070.03012.65
4.4.20.0000.03312.65
4.4.10.0030.03312.65
4.4.00.0070.05012.65
4.3.110.0000.02012.65
4.3.100.0000.02312.65
4.3.90.0000.01712.65
4.3.80.0030.05012.65
4.3.70.0000.03712.65
4.3.60.0000.02712.65
4.3.50.0000.02012.65
4.3.40.0070.05012.65
4.3.30.0000.03712.65
4.3.20.0000.03312.65
4.3.10.0000.03012.65
4.3.00.0000.03312.65

preferences:
50.43 ms | 401 KiB | 5 Q